M BUZZ CRAZE NEWS
// news

ssh id_rsa.pub not accessible

By John Parsons

I have a problem when i try to use a key with ssh:

ssh -i /ssh/id_rsa.pub
Warning: Identity file /ssh/id_rsa.pub not accessible: No such file or directory.

2 Answers

/ssh is not a valid file path, and if it is you don't have access to view it.

SSH Keys are usually generated and placed into $HOME/.ssh/. I think you meant to run this:

ssh -i $HOME/.ssh/id_rsa root@x.x.x.x
5

Does root on the remote machine have a password? That is, did you sudo passwd root to give root a password on the remote machine? If you didn't do that, you can not log in as root directly.

For an Ubuntu install, root's home is /root.

You should not need the -i flag unless you have multiple ssh identities in /root/.ssh.

8

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy