Instructables

Raspberry Pi Web Server

Step 5: SSH Login

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.
 
Remove these adsRemove these ads by Signing Up
PeterJTK4 months ago

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

PeterJTK PeterJTK4 months ago

solved:

hardcoding in

WINDOWS\system32\drivers\etc\hosts

append

192.168.0.XXX myhostname

northbynate11 months 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:
http://makezine.com/2012/12/25/ten-raspberry-pi-tips/
sdobbie11 months ago
I created my hostname and when I try to log into it it says host does not exist.