- > How to use SSH Keys to access the cluster
On Linux :
ssh-keygen -t rsa
ssh-copy-id -i /.ssh/id_rsa.pub username@hepcms-rubin.umd.edu
Then check if you can use it by doing ssh username@hepcms-rubin.umd.edu
OSX:
If you are using macOS Sierra or above, you should already have ssh-copy-id installed. If not, use Homebrew. Then, follow the linux instructions for using ssh-copy-id.
Homebrew
install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
brew install ssh-copy-id
If you want to copy the key over manually, follow these instructions:
1. Create the key
2. Copy contents of ~/.ssh/id_rsa.pub into the ~/.ssh/authorized_keys file in your home directory on the server. Creating them if necessary.