Log in via SSH with PuTTY SSH

magick

Active Member
Oct 2, 2021
35
3
8
Italy
cPanel Access Level
Reseller Owner
Hi,

I follow your blog guide to access with PuTTY SSH How To Use PuTTY SSH With cPanel® | cPanel Blog, but I have some problem.

In the first method using a username and password, when I insert username in terminal emulator, it shows this error:
"PuTTY Fatal Error

No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)".

In the second method, I generate the SSH Keys with put but i can't Uploading the Public Key to Your Server because in .ssh folder, I don't see the "authorized_keys file".

How can I Log with PuTTY SSH?

Thank you.
 
Last edited by a moderator:

quietFinn

Well-Known Member
Feb 4, 2006
1,793
409
438
Finland
cPanel Access Level
Root Administrator
Hi,

I follow your blog guide to access with PuTTY SSH How To Use PuTTY SSH With cPanel® | cPanel Blog, but I have some problem.

In the first method using a username and password, when I insert username in terminal emulator, it shows this error:
"PuTTY Fatal Error

No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)".
That means that password authentication is disabled.


In the second method, I generate the SSH Keys with put but i can't Uploading the Public Key to Your Server because in .ssh folder, I don't see the "authorized_keys file".

How can I Log with PuTTY SSH?

Thank you.
You must create the file authorized_keys, and paste the public key to it.
Permissions for the authorized_keys file must be 0600, and for the .ssh folder 0700.
 

magick

Active Member
Oct 2, 2021
35
3
8
Italy
cPanel Access Level
Reseller Owner
Do you have root access to the server, or just access to the cPanel account?
Do you have root access?
The provider says yes. I have a reseller hosting account with WHM and I created the cPanel account. In any case, I created the the "authorized_keys" file and I pasted the public key from the PuTTY Key Generator. After i followed this steps


Open PuTTY’s main session interface:
  • Enter your server’s domain name or IP address.
  • In the left-hand sidebar, expand the Connection item, then the SSH item, and click Auth.
  • Click the Browse button and select the .ppk file you saved earlier.
  • Click the Open button at the bottom of the window.

However when I insert username in the terminal emulator, I can't write the passphrase and a few seconds later it shows this error: "Remote side unexpectedly closed network connection".
 

Attachments