Can't connect with Putty on new install

Hi Guys,

I’ve just installed HomeAssistant on a RaspberryPi and everything went swimmingly by following https://www.youtube.com/watch?v=tCGlQSsQ-Mc&t=356s to the point of trying to connect using putty at which point I get ‘Host not found’ using the same IP that HA is using in the browser (essentially following the video step by step). I’m not sure if this is related but I can access HA via using the IP but not http://hassbian.local:8123.

So basically I can’t get in the front door and would very much appreciate a nudge in the right direction.

Thanks

Are you using the IP or hassbian.local like in the video?

Hey Mike, I’ve tried both IP and hassbian.local but both generate ‘Host not found’.

Perhaps SSH is disabled.
After flashing the card you should create an empty file called ssh in /boot/ directory on the flash card. This enables SSH on startup.

Info below:

1 Like

Great idea. I flashed the card again and as there was no boot directory I created one and added a ssh file:

The system came back up but putty still came up Host does not exist. Have i missed something in the setup?

A little confusing, but this is the boot directory. :slight_smile:
This partition of the SD card get’s mounted on /boot when raspbian starts.
So delete your created boot directory and create the ssh file here.

1 Like

This error means that your PC is attempting to do a dns lookup and failing, which means it does not think you are entering an IP address, because then it does not do a DNS lookup.

If you want to enter the IP address, the number you put in as the Hostname (or IP Address) field must be just the numbers like 192.168.0.3

Adding any characters to the field will cause it do do a dns lookup to translate this to an IP address, and result in the error you are getting.

If you have entered the IP address correctly and the Pi is not responding, you will get a network timeout error, or an SSH error if that is not configured to match putty.

1 Like

@VDRainer I did initially try to add the ssh to the root, or in this case, boot directory but got the same issue. I added the ssh file back in the boot just in case. Thanks for correcting me.

@gpbenton Bit embarrassing… but it turned out that I was in fact using http://192.168.0.3 instead of just 192.168.0.3 and hey presto I’m in!

Thank you all for your help. Now the fun begins :slight_smile:

Sorry to revive this topic but I´m having a similar problem, I installed hassio on rasp pi3 I can access my dashboard on my computer, I can access the configuration.yml but when I try to access via putty it didn´t find anything, my IP it´s not fixed, but when I tried to fix it still didn´t found anything, any help?

Years later I know, but I’ve had exactly the same issue with a Pi 4 installation.
That is to say, I have successfully got Home Assistant running on a Pi 4, but I can’t access it with PuTTy as in the original demo.
Did you ever find a solution?