I'm getting this error: permission denied (public key)
Then I tried changing ssh-keygen and now I can't ssh login on my both users. How can I solve this problem?
Thanks!
11 Replies
Have you tried using ssh -v to get verbose info to see where it thinks it is failing?
EDIT BTW.. when I first read this, I though you were able to login via root but not via a normal user.
Connecting to IP address port 22
connection established
Then it checks the blacklist file, identity files on .ssh..atlast it shows permission denied(private key) and I really can't find where the problem is from. Could you guide me?
UPDATE:
I suppose here the problem is from
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/user/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/user/.ssh/id_dsa
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/user/.ssh/id_ecdsa
debug1: No more authentication methods to try.
Permission denied (publickey).
@rkumarnirmal:
I tried, it shows
Connecting to IP address port 22
connection established
Then it checks the blacklist file, identity files on .ssh and I really can't find where the problem is from. Could you guide me?
Based on the info you are providing… not really since I can't see what you are seeing.
The -v flag generates a lot of info which contains info about each step the process is taking along with the results. Something is failing, but without the output???? can't even guess other than you might have permissions of the files setup incorrectly.
If you are uncomfortable posting that kind of info, you should find someone that can look at it for you privately.
Please someone help me. I'm a newbie in linux administration
@pclissold:
It is common practice to deny root logins using any authentication method – some distros do this by default. If you really want to allow this, check your sshd config file for a line that reads 'PermitRootLogin no' and change accordingly.
sshd in server? I can't able to login to the linode server. so how can I change it?
LishAJAX console
I went into the remote access tab and decided to try the ajax console and while it was a little slow, it worked great. I was able to log in and fix my little mess up with almost no effort.
Gotta love Linode at a time like that.
I struggled to login to my linode on weblish only to realize that it can be achieved by simply typing "root" or "my_user".
This allowed me to paste my public key to a file in .ssh
. After logging out of weblish (just typing "logout"), I was able to access my server through my laptop's terminal.