All kinds of developers often need to access a server somewhere on the web. Of course we clans of developers know how to make a secure shell session with the SSH protocol/service using a key or a the users password:
ssh [email protected] -p 22
In this article, I lay out how I connect to my web servers to make remote commands and data transfers. I’ll assume you have a linux based machine (Ubuntu 18.04 in this article specifically)
Mounting a directory at the server
Ubuntu has the simple and beautiful nautilus file browser (similar to windows file explorer). If you launch it you can see from the left side menu a list of bookmarks and everything you mounted.
You can mount a directory at your server by going to other locations (last item in the menu) and in the connect to server bottom bar, type in the connection (ex: sftp:/domain.com):
You will then be prompted to enter the server’s credentials:
You can choose the right protocol (the method of connection), sample protocols are:
And there are many different options, though these 3 are used most of the times.
Using Third party SSH Clients
Examples are FileZilla (Unix) and Putty/WinSCP (Windows). these provide a simple interface to make a connection to a server, you just have to provide a username, domain, and connection credentials. Then you can view files on the server as if it was a local machine.