You can now use the key for logins from scripts and command line with: ssh -i privatekey.pem It should only be readable by the user that owns it. Make sure permissions on the private key file are set properly. puttygen privatekey.ppk -O private-openssh -o privatekey.pem.