I want to try the ssh-agent to login without password (I already know gssapi and pubkey methods, but I want to learn this). On client and server I had enabled AgentForward on ssh_config (client) and sshd_config (server)
On client, I start ssh-agent
eval `ssh-agent`
I add my rsa key
ssh-add
ssh-add -l confirm it works
ssh-add -l
4096 SHA256:******** mysuser@mylocalhost (RSA)
then I login and ask the password
ssh remotehost
ssh-add -l on remotehost confirm it works
ssh-add -l
4096 SHA256:******** mysuser@mylocalhost (RSA)
Now I open another shell, ssh to remote host and..ask again the password. If I logout and login now..ask again the password. What's wrong?
I've also tried to create a new rsa key, add a password, add with ssh-add..and still ask password.