Step 5: SSH Login

Picture of SSH Login
Security Alert.png
Logged In.png
Once your Raspberry Pi has halted, you can disconnect it from the monitor as it is no longer needed.

Plug your Raspberry Pi's power connection in, as well as the network cable into your switch, or hub / router.
Wait a minute or so, then run your SSH client. (I used PuTTY).

Type your hostname into the hostname box, and use port 22. (The hostname is the one you set earlier).
Then click "Open".

As this is the first time you have connected to your Raspberry Pi via SSH, you will get a security warning. Click "Yes" to continue.

Now you can login to your Raspberry Pi with the username: pi and password: raspberry.

Since SSH is working, you no longer need to worry about plugging in a monitor, or keyboard, so you Raspberry Pi can be placed anywhere where there are power and network connections available.

Im trying to login to putty and it says connection refused...

PeterJTK1 year ago

you must have done something that is not in this tutorial in order to address the pi by its hostname. what is missing.?


hardcoding in



192.168.0.XXX myhostname

northbynate2 years ago
Try "ssh raspberrypi.local". or "ssh XXXXXX.local" where XXXXXX is your hostname.

If that doesn't work install avahi by typing "sudo apt-get install avahi-daemon" when directly logged into the pi.

Then try the ssh'ing into hostname.local again.

Here's a link to a few other intro tips:
sdobbie2 years ago
I created my hostname and when I try to log into it it says host does not exist.