geerlingguy / internet-pi

Raspberry Pi config for all things Internet.
MIT License
4.38k stars 454 forks source link

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

Open Abhilashsj92 opened 2 weeks ago

Abhilashsj92 commented 2 weeks ago

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 commented 1 day ago

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 commented 1 day ago

@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.