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!
21 Comments
6 years ago
This is out of date. the recent release of debian for the pi does not have an SSH option in that menu.
Reply 6 years ago
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.
6 years ago
Thank you! i needed this to program the pi for m son's PiCar.
6 years ago
Can you check the IP adress many times?
6 years ago
I type sudo raspi-config in the terminal and get "no command found." Same thing with sudo ifconfig. What is wrong?
Reply 6 years ago
same problem
6 years ago
oddly I get the message that I have to add the correct key in my 'known host file'
7 years ago
The title or introduction should precise that the PC parts instructions are is for MS Windows.
Reply 6 years ago
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.
Reply 6 years ago
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.
7 years ago
I have "Initial ssh key generation still running. Pleas wait and try again" after I hit SSH in the terminal. Help?
Reply 6 years ago
Try turning it off and back on. If still no luck, reinstall os.
7 years ago
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
8 years ago on Introduction
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/
9 years ago on Introduction
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.
Reply 8 years ago on Introduction
Instructable changed. Tnx.
10 years ago on Step 2
it is nice instruction. thank you.
Reply 9 years ago on Step 2
Thanks mkahata! (sorry for the late answer)
10 years ago on Introduction
No different than accessing any other linux box.
Reply 10 years ago on Introduction
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