Raspberry Pi Adventures

Join me on my fun ride

Enabling SSH on Raspberry Pi and using Putty and WinSCP

7 Comments

Using OS : 2012-08-16-wheezy-raspbian

The latest wheezy image has SSH installed by default you just need to start the ssh service.

To start the SSH server on a Pi type it on the console or terminal window.

$sudo /etc/init.d/ssh start

To get your ip address so that you can use that in Putty or WinSCP to connect to the pi type the following
$ip addr
or
$ifconfig

Now you need to look at eth0 if your RPi is connected via ethernet and note your IP Address.

Now that you have your IP Address we can connect using Putty and WinSCP


Putty

Steps

1. Enter above noted IP Address
2. Port is 22
3. Click open

If SSH is started successfully you should be able to see this screen.

WinSCP Connection

1. Enter IP Address in the Host Name Field
2. Enter Username
3. Enter Password
4. Click Login
5. If everything is ok below screen will be displayed.
6. Now you can drag and drop files from your desktop to your Pi.

Tip: To start ssh automatically at boot run the following command

$sudo update-rc.d ssh defaults
To know more about update-rd.d read the following

Making scripts run at boot time with Debian
How-To: Managing services with update-rc.d | Debian/Ubuntu Tips & Tricks
Manage Linux init or startup scripts
Update-rc.d – LQWiki

Enjoy 🙂

References
Enable Secure Shell (SSH) On Your Raspberry Pi | Raspberry Pi Spy
Enabling SSH on Debian Raspberry Pi « Steve @ DynamicEdge

YouTube
Raspberry Pi – Enabling SSH on Debian #6 – YouTube
For those who dont have ssh installed by default can follow this video link 🙂

General Read
OpenSSH Server

Advertisements

Author: Sanket Sonavane

Sanket Sonavane Software Developer, IoT Enthusiast, Photographer, Bike Rider, Chef, AndroidUser, MacOSXNewbie & 3x3x3 Cuber ;) Loves computers, programming, web developement, micro-controllers, gadgets, automation and many more such tech innovations that defines the way we live in the modern age and likes to explore what more can be done to help the human race :)

7 thoughts on “Enabling SSH on Raspberry Pi and using Putty and WinSCP

  1. The problem I have (temporrily) is that I don’t have an usb keyboard so I can’t put in my credencials and configure raspberry.
    Therfore I’d need ta ssh connection but unfortunately sshd is not started.
    The only way to have it started on reboot is to manipulate theraspberry image file on a Linux box.
    I already tried with /etc/init.d/ssh and the apropriate soft link in /etc/rc2.d but ssh won’t start.
    Any ideas?

    Thanks
    Julio

  2. The ppen testing appliance offers entirely detailed reports
    on the proteection status of your total ireless network.
    Therefore, a good firewall progrzm is a must for broadband users.
    In selecting a company too purchase your SSL,
    you need to look at their reviews, customer support and of course, price.

  3. Nice article, thanks, it really helps a lot!

    I managed to access my Pi using your recommendations. I have now replaced PuTTY with MobaXterm ( http://mobaxterm.mobatek.net ): it allows me to transfer files easily (there is a remote explorer on the left), and to display my remote graphical applications using the embedded X server!

    Perhaps you could add a quick MobaXterm tutorial to your article as this may be of some help for other Pi users!”

  4. This is a great little setup how-to but doesn’t even begin to cover what to do if you run into issues. Like when you go to copy a file to your pi and you get error messages. According to your step 5 everything shouldve been fine because my screen looked like that. However “access is denied”.

    Any ideas?

  5. Hello to every one, the contents present at this website are in fact remarkable for people knowledge, well, keep
    up the good work fellows.

  6. Pingback: Mosquitto MQTT on Raspberry Pi [Broker - Publish and Subscribe Client] « Raspberry Pi Adventures

  7. Pingback: MQTT on Raspberry Pi « Hot Proton

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s