ish-app / ish

Linux shell for iOS
https://ish.app
Other
17.05k stars 904 forks source link

SSH permission denied publickey #1977

Open ManuISEN opened 1 year ago

ManuISEN commented 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

Trying to connect with # ssh -i /root/.ssh/id_rsa -p 22412 nae vus@raspberrypi4 returns me naevus@raspberrypi4: Permission denied (publickey).

Alex23rodriguez commented 1 year ago

you need to add the key to the ssh-agent first. Try running: eval $(ssh-agent -s) ssh-add /root/.ssh/id_rsa