Introduction: Use Ssh to Talk With Your Raspberry Pi.

This brief guide explains how to use ssh to talk with your Raspberry Pi.

You will need:
1 Raspberry Pi connected to your router
(Monitor and keyboard.)

If you are looking for a guide to access your Raspberry Pi from the internet look here:
https://www.instructables.com/id/Raspberry-Pi-as-webserver/

Step 1: Enable Ssh on Raspberry Pi

Login with the following information when prompted:
Username: pi
Password: raspberry

Type the following command:

sudo raspi-config
in the terminal, then navigate to ssh, hit Enter and select Enable or disable ssh server.

reboot

After Pi is restarted check ip-address with the command

ifconfig
Note the inet addr!

It is a good idea to change password. This is done with the command:
sudo -i
passwd pi
Remember the new password!

After this step you'll not need to use monitor and keyboard to run commands on your Raspberry any more. See next step!

Step 2: Install Putty on Your PC

Download and install putty.
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Start putty.

Add new config with the ipaddress from previous step. (for i.e 192.168.1.12 and port 22)

Save. Click open.

You'll be prompted
login:
If you done right...

Login with username pi and the password you entered in previous step. (Default password is raspberry)

If you want to install a webserver on your Raspberry Pi look here:
https://www.instructables.com/id/Install-a-webserver-on-Raspberry-Pi/

http://213.65.123.101/whoiam/ - all you want to know about what google knows about you.

May the Pi be with you!

Comments

author
Redlinecoder made it!(author)2017-06-26

Can you check the IP adress many times?

author
TheShellex made it!(author)2017-05-24

I type sudo raspi-config in the terminal and get "no command found." Same thing with sudo ifconfig. What is wrong?

author
LinhN32 made it!(author)2017-06-05

same problem

author
diy_bloke made it!(author)2017-02-04

oddly I get the message that I have to add the correct key in my 'known host file'

author
signuplease made it!(author)2016-05-23

The title or introduction should precise that the PC parts instructions are is for MS Windows.

author
PridhviM made it!(author)2017-01-23

You don't need MS Windows to enable ssh. You might need a computer running windows/mac os/linux to communicate with the rpi through wifi.

author
signuplease made it!(author)2017-01-23

Yes I know you don't need M$Windows to use ssh, I just meant that your good instructable is specifically about using ssh on M$W to communicate with the pi.

author
JuanP131 made it!(author)2016-07-15

I have "Initial ssh key generation still running. Pleas wait and try again" after I hit SSH in the terminal. Help?

author
PridhviM made it!(author)2017-01-23

Try turning it off and back on. If still no luck, reinstall os.

author
Sperch made it!(author)2016-06-04

Thanks!

If you want to remotely ssh access you need port forwarding, static ip or ddns.

The easy way is Terminalify (terminalify.com). You can access remote linux device without static ip, port forwarding via Terminalify.

Tutorial: https://www.youtube.com/watch?v=A7Qvm7ZBZrg

author
Magdiblog made it!(author)2015-02-04

Hi

To go further, here is explained how to keep in touch with a Pi even if it's ip address is dynamicaly allocated (dongle 3G...) :

http://www.magdiblog.fr/divers/ssh-connect-back-comment-garder-la-main-sur-un-raspberry-pi-connecte-a-internet-via-un-dongle-3g/

author
IqAndreas made it!(author)2014-09-03

Step 1 no longer works in the current version (running Wheezy at the moment, but I'm not sure when it changed). In the current version you need to run raspi-config, go to 8 Advanced Options, and then A4 SSH where you can enable or disable SSH access.

author
antares72 made it!(author)2014-10-11

Instructable changed. Tnx.

author
mkahata made it!(author)2013-02-25

it is nice instruction. thank you.

author
antares72 made it!(author)2014-03-08

Thanks mkahata! (sorry for the late answer)

author
Computothought made it!(author)2012-10-15

No different than accessing any other linux box.

author
antares72 made it!(author)2012-10-16

You are absolutely right! It is a Linux box, but smaller and funnier! =} Leave a "Computothoght was here" on indexpage if you hack it... and post your step by step instructable in the Raspberry contest and you'll surely win. :) With respect, A

author
Computothought made it!(author)2012-10-17

Finally have my pi. Just found out the newer units have twice the memory. Wished I had waited a bit longer to get it......

About This Instructable

343,303views

133favorites

License:

More by antares72:See the world as BitsCheck who is at home! Home automation. Surveillance. Big Brother tech. Raspberry PI.Emergency supplies
Add instructable to: