Introduction: Use Ssh to Talk With Your Raspberry Pi.

Picture of 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

Picture of 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

TimothyG20 (author)2017-08-18

This is out of date. the recent release of debian for the pi does not have an SSH option in that menu.

brsteve (author)TimothyG202017-09-05

To help anyone who runs into that, the updated instructions for the menu should be to click "Interfacing Options" in the menu, and THEN click SSH.

BigNateMI (author)2017-08-16

Thank you! i needed this to program the pi for m son's PiCar.

Redlinecoder (author)2017-06-26

Can you check the IP adress many times?

TheShellex (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?

LinhN32 (author)TheShellex2017-06-05

same problem

diy_bloke (author)2017-02-04

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

signuplease (author)2016-05-23

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

PridhviM (author)signuplease2017-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.

signuplease (author)PridhviM2017-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.

JuanP131 (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?

PridhviM (author)JuanP1312017-01-23

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

Sperch (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

Magdiblog (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/

IqAndreas (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.

antares72 (author)IqAndreas2014-10-11

Instructable changed. Tnx.

mkahata (author)2013-02-25

it is nice instruction. thank you.

antares72 (author)mkahata2014-03-08

Thanks mkahata! (sorry for the late answer)

Computothought (author)2012-10-15

No different than accessing any other linux box.

antares72 (author)Computothought2012-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

Computothought (author)antares722012-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

375,218views

134favorites

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: