Raspberry Pi Remote Access by using SSH and Putty
After setting up your Raspberry Pi you probably don’t want to use your keyboard and mouse. That’s where a remote connection helps: You can have remote access to your Raspberry Pi through SSH from every other computer which is in the same network as your Pi.
In this Tutorial you will learn how to use SSH for connecting to you Raspberry Pi.
Hint: If you want to have access with a GUI (like TeamViewer or VNC), you can establish a remote desktop connection.
So let’s begin. On Windows computers you need the program PuTTY. You doesn’t have to install it – Putty can be used without installation by opening just the putty.exe file. Then you will see a user interface like this where you enter the host “raspberrypi“:
(If the connection didn’t work, you can look up the internal IP address of your Raspberry Pi in your router. It should be similar to 192.168.0.xxx, but the last digits may vary.)
With this default configuration of Putty you are not able to see all programs, especially not GUI programs. However if you want to start those kind of tools (like the GUI editor gedit), you need to install a X Windows System like XMing. After the installation you have to start it. It has no graphical user interface and will just run in background. Now go back to Putty and select Connection > SSH > X11 and check “Enable X11 forwarding”. That’s all! Optimally you save the settings. If you now login (first category: Session) X11 is enabled and you can open GUI programs, too.
After establishing the connection by clicking “Open” a new window appears. Here you should insert your username and password. The Raspbian Wheezy/Jessie default login is user “pi” with password “raspberry“.
If you have not already changed your password, you should do this now because not only you but also everybody else in your network could have remote access to your Raspberry Pi (if the default password is known).
With the following command you can change your password:
After you confirmed your new password you have obviously to use it on your next login.