The standard way to login to an ATS-Hosted cluster is to use ssh. From Unix, or Linux or a Mac Terminal window, you can access the cluster using your local ssh client. For example:
ssh -l loginid cluster-loginnode-addressSimilarly, you can use the related scp command to transfer files to or from your machine to the ATS-Hosted cluster.
Normally both the ssh and scp client commands will prompt for your ATS-Hosted Cluster password. If desired, follow the instructions here to ssh and scp without being asked for your password when you are coming from a specific desktop or laptop system that you normally use. For example, you can make it so that you can always login without a password from your personal workstation.
The ssh/scp commands use files in the .ssh subdirectory of your home directory for configuration purposes. There are two ways the .ssh subdirectory and the files in it can be created:
The .ssh/authorized_keys file may contain a list of public keys. By placing the public key for your login id on your personal machine in your authorized_keys file on the ATS-Hosted Cluster, you allow your login id on your personal machine to ssh or scp to your cluster login id on the ATS-Hosted cluster without being asked for your cluster password.
As noted in the Security Policy for ATS-Hosted Clusters, UCLA Policy 401 specifies the minimum security standards for all electronic devices connected to the UCLA Campus Network. If you allow passwordless access from your desktop workstation or from your laptop to an ATS-Hosted Cluster and that machine does not meet those minimum standards, you could compromise your login id on the ATS-Hosted cluster. Moreover, you could compromise the entire cluster, not just for you but for everyone else as well.
cdIf you don't see .ssh in the list, make a subdirectory named .ssh:
ls -a
mkdir .ssh
mkdir .ssh
cd .ssh
ssh-keygen -t rsaDo not enter a passphrase; just press the enter key. This will create the files id_rsa and id_rsa.pub on your local machine in the .ssh directory.
scp id_rsa.pub loginid@cluster-address:.ssh/id_rsa.name.pubReplace loginid with your cluster login id, cluster-address with the address of the ATS-Hosted Cluster and name with a name you will use for this local machine.
cp id_rsa.name.pub authorized_keys
cat id_rsa.name1.pub id_rsa.name2.pub > authorized_keys
mv authorized_keys authorized_keys_orig
cat authorized_keys_orig id_rsa.name1.pub id_rsa.name2.pub > authorized_keys
chmod u+w authorized_keysIf your home directory, .ssh subdirectory or authorized_keys file are writable by other than you as owner, ssh and scp will continue to ask for a password each time you access the cluster. There will not be any error message telling you what the problem is.
chmod go-w authorized_keys
cd
chmod u+w .ssh
chmod go-w .ssh
chmod go-w .