Enter Passphrase for pkk pem Keys

When your trying to connect to a remote server via pem key and it asks you for the passphrase everytime you login. To circumvent this issue in Mac you can add the passphrase via ssh-add command

ssh-add -K /Users/shadab/Downloads/wha_moov.pem

And enter the passphrase once, next time you connect it will not prompt you for the passphrase becuase it adds the private key to the keychain

ssh -i /Users/shadab/Downloads/wha_moov.pem user@ -p 2222


Category: LinuxMacOs


Leave a Reply

Article by: Shadab Mohammad