SSH is a secure method of logging onto a remote computer. If your Pi is networked then this can be a handy way of operating it from another computer or just copying files to or from it.

SSH  is Secured SHell .

First you have to install the SSH service.

The wheezy Raspbian OS  comes with SSH telnet access enabled, and this is a great way to get terminal access to your Raspberry Pi over network ,without having to hook it up to a monitor and keyboard.

All you need is to connect your Raspberry Pi to power and an internet connection.

Open the LXTerminal & type in   sudo raspi-config

 

Image 15

The list of set up options is displayed.Move down to select Advanced Options.

Image 10

Under Advanced Options window select SSH.

Image 11

Enable the SSH service

Image 12

 

Image 13

Click on OK & then FINISH.

Reboot your PI.

Image 14

To connect PI over network you should know the IP address of PI.

You can type in  either of the following command to learn the address.

ifconfig

or

ip addr show

 

 

Image 4

 

Image 3

 

By default the Raspberry Pi will be allocated an IP address by your router. However, next time you power it up the router may allocate a different IP address. This is a problem because in order to connect through SSH we need to know the Raspberry Pi’s IP address on your local network, and we can’t see this if we don’t have a monitor attached.

There is a  a great free tool called Advanced IP Scanner to find out the IP address.

Download it from

http://www.advanced-ip-scanner.com/

Run the tool & click on Scan button.

Image 9

You can see the PI detected on network.Note down the IP address.

Now we shall see how to connect to PI from a distant computer.We make use of PuTty software .This is an excellent software that works on Windows  as well as Linux platforms.

Download PuTty from here :

Open the PuTty terminal & under host name enter the IP address of Raspberry PI.

Ensure that port is 22 & connection type is SSH.

Image 1

 

Click on Open

The PI is contacted over Network & it’ll ask for login & password.

Enter login as :   pi

password as  : raspberry

, all in small letters.

Image 2

You get the prompt pi@raspberrypi ~ $

where pi is the username

raspberrypi is the host name

~  is the current working directory of shell

$  is the shell prompt.

Now you can issue commands as if you are in front of PI.

Image 16

 

Important Note  :

The address range starting 192.168.x.x  are purely for use on LOCAL NETWORKS only.

It is non routable & someone on other side of router (on internet) cannot directly access that address.

 

Watch this support video :

 

Control Raspberry PI from a distant PC over Network

www.alselectro.com

cooltext753793315