Create shortcut log-in command

From HPCwiki
Revision as of 22:11, 24 November 2013 by Hjmegens (talk | contribs) (Created page with "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 c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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>