I continue to get a passphrase prompt with ssh despite already having set up the public key authetnitication on the remote server. I have already in the past done the following:
Local Server
chmod 700 ~/.ssh/
chmod 600 ~/.ssh/id_rsa
eval `ssh-agent`
ssh-add ~/.ssh/id_rsa (enter passphrase here)
Remote Server
Set up a ~/.ssh/authorizedkeys (this is my id_rsa.pub file from my local server)
After disconnecting from my local server and logging back in, I still need to enter my passphrase despite having already added the identity to my key agent. It continues to be prompted.
This is what my config file settings look like as well:
Host *
User name
StrictHostKeyChecking no
PasswordAuthentication no
AddKeysToAgent yes
UpdateHostKeys yes
IdentityFile ~/.ssh/id_rsa
PubkeyAuthentication yes
Port 22
Thanks in advanced
ssh-agent
. This is expected. – Panki Jul 01 '21 at 10:42~/.ssh/id_rsa
? (2) are you the owner of~/.ssh
? (3) are you the owner of~/
and (4) are permissions750
on~/
? – NoExpert Aug 27 '21 at 23:14