Create shortcut log-in command
Jump to navigation
Jump to search
It can be very tedious to have to type full command to log into a remote machine using the secure shell (ssh) when a remote machine is used often. A simple solution is to add a custom command to the .basrc. Open the .bashrc (which is in the root of home directory) using any plain text editor. E.g.: <source lang='bash'> vi $HOME/.bashrc </source> <source lang='bash'> alias lx7="ssh username@scomp1095.wurnet.nl" alias hpc="ssh username@nfs01.hpcagrogenomics.wur.nl" </source>
<source lang='bash'> lx7 </source>