everyone
I am currently using a cluster, and will connect to it frequently using “ssh”. Sometimes I need to open multiple terminals. Thus every time when I need to connection, I have to type “ssh username@cluster.com” and followed by the “password” (I am using the Terminal application on Mac OSX).
I am wondering it there any convenient way to achieve it, such as set up a “command” (e.g. “cluster”), and it will automatically establish the connection between my computer and the cluster. What I only need to do is just type “cluster” when I need the connection.
Cheers
Joe
SSH keys as mentioned above by forresty is probably what you want. Alternatively, if you don’t want to set that up you can simply edit your ssh config file. You can find it at ~/.ssh/config or create it if it doesn’t exist. Just type the following information into the file:
Now when you want to log into the cluster you just type “ssh cluster” and enter your password. This will also work for scp. If you need to copy something to/from the cluster just use “scp cluster:path/to/file”