I got quite a few servers where I login via SSH. As a Linux user, I experience tired typing to a greater extent than than few things at a fourth dimension (not my fault!), thus I decided to exercise SSH shortcuts together with relieve it to my desktop. From then, all I needed to exercise is opened upward that shortcut together with simply type inward my password of tokenID depending on the server’s I am using. So, inward this guide, I volition demonstrate how to exercise SSH shortcut inward Linux.
First larn to Desktop (or where-ever you lot desire to relieve these shortcuts) together with exercise a file named production.desktop.
blackmore@blackTOP: /Desktop$ cd /home/blackmore/Desktop/
blackmore@blackTOP: /Desktop$
blackmore@blackTOP: /Desktop$ vi production.desktop
Copy glue the next codes inward the file:
[Desktop Entry]
Version=1.0
Name=My Server
Comment=Login to Prod
Exec=mate-terminal --disable-factory --sm-client-disable --class=MyServer -x ssh -t root@example.com
StartupWMClass=MyServer
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=utilities-terminal
StartupNotify=true
The close of import matter you lot involve to modify is the user together with server lift (FQDN) i.e. root@example.com to something similar andrew@10.1.1.30 or sam@myserver.com etc. Depending on your Linux distro, you lot mightiness too involve to modify Icon=utilities-terminal equally this lift mightiness non hold upward same.
Save the file together with and thus modify the permission to the file:
blackmore@blackTOP: /Desktop$ chmod -R +rwx production.desktop
You should run into an ICON on your desktop amongst MyServer name.
Right click-open or double-click both would burn upward a SSH session to your server amongst username pre-filled waiting for your password/token/security code. Pretty neat!
On a side note, if you lot are trying to secure your servers, together with thus mayhap role CSF Firewall together with restrain it past times pose down code equally shown inward here. I’ve e'er institute CSF to hold upward ameliorate compared to Fail2Ban.
