Passwordless login in HPCL@GWU


Thanks to Proshanta’s hard work, the network policy of HPCL changes slightly: all the servers are authenticated via key pair only.

Generate the public/private key pair as

ssh-keygen -t rsa

Copy the public key to the reomote host:

scp ~/.ssh/ user@server:~/
ssh user@server [user@server]
ssh-keygen -i -f
# at remote server
cat ~/ >> ~/.ssh/authorized_keys2

OpenSSH key pair format is not compatible with’s client/server. We need to convert it before append it to the configurations if necessary.