Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetal error : Failed to connect to host via SSH #621

Open
Abhilashsj92 opened this issue Nov 17, 2024 · 2 comments
Open

fetal error : Failed to connect to host via SSH #621

Abhilashsj92 opened this issue Nov 17, 2024 · 2 comments

Comments

@Abhilashsj92
Copy link

image
guys, i am getting this error in my Rpi 4B running locally in my network. i am able to access my Rpi in SSH but why ansible is not able to is a question i need your help.

i am new to this, please help me.

@sarhatabaot
Copy link

I resolved this by manually adding an entry with my password to inventory.ini:
your_ip ansible_user=pi ansible_ssh_pass=your_password
You can also add your key:
your_ip ansible_user=pi ansible_ssh_private_key_file=/path/to/private/key

@quadespresso
Copy link
Contributor

@Abhilashsj92 for future travellers, it would be helpful if you were to copy/paste the error text (with appropriate Markdown formatting). Including the screenshot can be a bonus if the formatting is particularly unpleasant, but is less likely to be found by others searching based on a particular error string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants