Remoting into the Pi – all the tools you’ll ever need
Being able to connect to a server somewhere out in the wild or in the neighbourhood of your local network is certainly something that has been going on for decades.
The most common activities that one would want to perform on a remote server are:
- Issue commands
- Transfer files
- Text based aka terminals
- Graphical User Interface aka GUI
Let’s see what happens in the most frequent cases.
SFTP and SCP
My favourite tools are Filezilla and WinSCP although the humble PSFTP installed with PuTTY can still do a great job if nothing else is available.
A great thing of WinSCP is that it will be able to import all your PuTTY sessions as you install it and it supports SCP along with SFTP. In many instances I have seen people preferring WinSCP to Filezilla.
Filezilla though has my preference as it still supports FTP which is still somewhat handy for the likes of uploading content to websites.
There is of course more to see and discuss about these two great clients but it is time to move on to the next set of tools.
Text based terminals are great but we live in an extremely visual world and Graphical User Interfaces are preferred by many with good cause. One of the obvious desires then is to be able to interact directly with the Raspbian desktop and this can be achieved using some form of Virtual Network Computing based software.
There are quite a few incarnations of VNC servers and clients and although Rasbian doesn’t come with a specific one the Raspberry Pi foundation seems to point to TightVNC which can be installed fairly easily following their simple guide.
As for the client side … well there are quite a few but I use RealVNC which covers quite a few platforms and does the job excellently. Remember that your display will be display 1 and that to indicate to the VNC client that you are not connecting to the default screen 0 you will have to write <IP Address>:1 e.g. 10.42.0.53:1
X and the rest
Of course the best way to go to a Linux box is with a Linux box and this can be achieved in a number of ways. All of the above can be done from an Ubuntu machine whether it is your default operating system or you are running an instance as a virtual machine of your Windows host. The software to use will be rather different for the majority but the mechanisms described are the same.
One strange beast to mention in this realm is Cygwin which, as they say on its website,
“is a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows”
and that in fact will allow to work on your Windows box in a “Linuxy” way. One thing we could obviously do is to connect to a Pi from a Cygwin terminal. We can type in xinit and the following whitish window will pop up to indicate that an X server is available! Fantastic
This means that I am using the SSH client in Cygwin on which I am enabling X forwarding (-X) to my Cygwin X server and connect as the user pi to 10.42.0.53
Once I give the password I am in my Pi as shown by the green prompt. From there I can launch lxtask and get my graphical task manager displayed via Cygwin. Isn’t that the most useless thing? 🙂
Jokes apart though this shows probably one of the many coolest ways to connect to a remote Linux box and it is as close as native Linux as you can get on a Windows computer.
That’s all folks
These tools covered most of the use cases that you will ever encounter but bare in mind that what I have listed here are only some of the tools that are available. Also the majority of what I described applies only to Windows. There is of course much more, there is also Apple stuff and one and a million way to do things in Linux.
Note that some of these softwares are also distributed as executable instead of full install. This is great when you want to carry your tools around on a USB key or when the administrators of the systems on which you need to work aren’t too lenient on you installing new software. So when downloading check which type you are getting hold of.
Mostly if you can spare some money for those projects that accept donations you can play an important role in promoting what’s good out there, right?
This closes “all the tools you’ll ever need to remote into your Pi”.