Remote Connection to a console session using SSH connection.
(Windows computer to your RPi)
See below to ssh from your RPi to another computer.
SSH is enabled on the RPi by default.
If for some reason it's not enabled then rerun: sudo raspi-config
and run the ssh enable utility.
You will need to install a SSH client software on your remote computer. A very popular client is PuTTY. Download PuTTY
a complete install, download and run the Windows installer. Or get just
the putty.exe file for a quick and easy use with no install. Just
remember where you put it.
Note: With SSH you will only be able to connect to a command line
console session. You cannot run the GUI (startx). For that see RDP
You need to know the IP address of your RPi.
Look in your router
config pages to find it. Should be something like: 192.168.1.xxx
From the RPi enter sudo ifconfig
. Look for inet addr: 192.168.x.xxx.
Note: For Ethernet connections look in eth0 section. For WIFI connections look in wlan0 section.
PuTTY Configuration Screen
When started, PuTTY will show this screen:
Host Name (or IP address)
You will need to put in the IP address of your RPi
Port = 22 (Default SSH port)
Connection type: SSH
You can Save / Load your configurations if you wish.
PuTTY Security Screen
The 1st time you connect you will be asked about the host key. Select Yes to store key or No for one time use.
PuTTY Connection Screen
You will be asked for your RPi login and password:
When done with your session be sure to type: exit and hit [Return]. Both the SSH session and PuTTy will then terminate.
SSH from one RPi to another RPi or another (Linux) computer.
Obtain the IP address of the other RPi or computer
At command prompt type:
- 1st time connection you will be asked to store the key yes or no.
- You will be asked for a password to the remote machine
- You should now see the command prompt of the other computer. If
to another RPi and you have not made changes to the usernames, then the
terminal session and command prompt will look identical to the local
machine (pi@raspberrypi - $). Make sure you keep track of which is
machine you are looking at and issuing commands to - remote or local.
- When done type exit to
close the remote ssh session and return to the local machine. Of course
type exit a 2nd time to exit the local terminal session.
- If nothing seems to be happening after entering the ssh
192.168.x.xxx command ..... Maybe you typed the wrong IP or that
machine is not online...... then type Ctrl-C.