Click here for a free subscription to "HDE" our site newsletter.

Raspberry Pi Beginner Projects: Using SSH and SFTP

Secure Remote terminal and file transfer

On the VNC page you learned how to set up your Pi and computer so that you could access the Raspbian desktop GUI across your local network. In this article I'm going to show you how you can open up remote terminal windows and do simple file management across your local network too.

You may want to note that you can also use any of these tools across the Internet from anywhere. You just need to make a few changes to your local router and network setup. This is beyond the scope of this article but I will try and cover it in future writings.

PuTTy - Remote Telnet and SSH client

To access your Raspberry Pi terminal interface using the SSH or "Secure Shell" you can use the excellent and free "PuTTy" utility. You will find download page links on the official PuTTy page. Download and install it now.

When you have PuTTy installed you can run it and enter the IP address of your Pi in the host name box. The port number should be set to 22 and the radio buttons to "SSH".

PuTTy SSH and Telnet client

If you wish you can enter a name in the "Saved Sessions" box and save it to avoid some typing in the future.

make sure that your Raspberry Pi is powered up, fully booted and connected to your network then click the "Open" button.

You should now see a text based command window open up and a login prompt from your Pi, just as you would see on your main console display after booting. Login with the default credentials:

login as: pi
pi@192.168.0.25's password: raspberry

If you have got the authorization correct you should then see a welcome message from your Pi and a command line prompt. You can now enter commands as if you were using the Pi's local console.

WinSCP - SFTP client

Right so now you can remotely interact with your Pi's desktop with VNC and access the command line from your PC with SSH. All that is missing is a convenient way to transfer files between your Pi and PC or any other device on your network.

The tool that I use for Windows based Raspberry Pi file transfer is called "WinSCP" and you can download it from here. Install it and run it.

WinSCP SFTP client

Select "SFTP" from the dropdown menu. SFTP stands for "Secure File Transfer Protocol". It provides simple file transfer with encryption. Enter the IP address of your Pi in the "Host name" box and "Port number" 22. Enter the username "pi" and leave the password blank.

You can save this session if you wish by clicking "Save" and entering a name.

Click the "Login" button and accept the encryption key. You can either accept it for just this time by clicking "No" or you can save the key on your machine by clicking "Yes"

Enter the password "raspberry" and then "OK". You should now see a familiar split window with your local machine files in the left pane and your Raspberry Pi's files in the right hand pane.

That's it. Transfering files between the two systems is as easy as dragging and dropping.

On the next page I will show you how to change the name of your Pi from the default "raspberrypi".



Now subscribe to our newsletter and don't miss a thing
 



Comments

No comments yet.

Add Comment

* Required information
(will not be published)
 
Bold Italic Underline Strike Superscript Subscript Code PHP Code Quote Insert line Bullet list Numeric list Link Email Image Video
 
Smile Sad Huh Laugh Mad Tongue Crying Grin Wink Scared Cool Sleep Blush Unsure Shocked
Captcha
Refresh
 
Enter code:
 
Notify me of new comments via email.
 
Remember my form details on this computer.
 
I have read and understand the privacy policy. *
 
I have read and agree to the terms and conditions. *
 
Click here for a free subscription to "HDE" our site newsletter.