Open ManuISEN opened 1 year ago
Generated public and private key with # ssh-keygen Add it to my server with # ssh-copy-id -i /root/.ssh/id_rsa raspberrypi4
# ssh-keygen
# ssh-copy-id -i /root/.ssh/id_rsa raspberrypi4
Trying to connect with # ssh -i /root/.ssh/id_rsa -p 22412 nae vus@raspberrypi4 returns me naevus@raspberrypi4: Permission denied (publickey).
# ssh -i /root/.ssh/id_rsa -p 22412 nae vus@raspberrypi4
naevus@raspberrypi4: Permission denied (publickey).
you need to add the key to the ssh-agent first. Try running: eval $(ssh-agent -s) ssh-add /root/.ssh/id_rsa
ssh-agent
eval $(ssh-agent -s)
ssh-add /root/.ssh/id_rsa
Generated public and private key with
# ssh-keygen
Add it to my server with# ssh-copy-id -i /root/.ssh/id_rsa raspberrypi4
Trying to connect with
# ssh -i /root/.ssh/id_rsa -p 22412 nae vus@raspberrypi4
returns menaevus@raspberrypi4: Permission denied (publickey).