First, a tangentially related note on password-free ssh and writing executable bash scripts. By example… I wanted to quickly login to the login node for the research computing cluster at Rice University (all names/addresses have been changed). Here’s how one would have to login the hard way:
Matty@HomeComp~$ ssh Matty@Cluster.rice.edu
then you’d have to enter your password. Here’s how to skip the step of entering your password every time [link].
After I set up pwd-free ssh, I wrote the following bash script:
#! bin/bash # filename: sshCluster # script to login to Matty@cluster.rice.edu automatically ssh Matty@cluster.rice.edu
Then at the command line:
~/$ chmod +x sshCluster
Then you should be able to simply type
~/$ sshCluster
at the command line to login.
