Error Login Permissions denied (publickey)
Posted: Thu Jul 27, 2023 7:54 pm
Hi @all,
I have a problem with the login to my new Ubuntu 22.04 root server when I try to login with a key pair generated with Putty KeyGen.
When I try to to login with username "root" and the root password everything is working and I can connect to the server.
But when I try to login with my private and public key, I get the error message "[SFTP]Error: Error Login <server name> Permission denied (publickey)."
I generated the key pair with Putty and copied the public key into the "authorized_keys" file in "/root/.ssh/" folder.
I also saved the private key in OpenSSH format and uploaded it to FTP Rush.
When I connect to my server with Putty or WinSCP, the key pair is working and I get connected.
Does anybody know what the problem could be in this case and also knows a solution?
Best regards
heusmich
I have a problem with the login to my new Ubuntu 22.04 root server when I try to login with a key pair generated with Putty KeyGen.
When I try to to login with username "root" and the root password everything is working and I can connect to the server.
But when I try to login with my private and public key, I get the error message "[SFTP]Error: Error Login <server name> Permission denied (publickey)."
I generated the key pair with Putty and copied the public key into the "authorized_keys" file in "/root/.ssh/" folder.
I also saved the private key in OpenSSH format and uploaded it to FTP Rush.
When I connect to my server with Putty or WinSCP, the key pair is working and I get connected.
Does anybody know what the problem could be in this case and also knows a solution?
Best regards
heusmich