Skip to main content

Log in via SSH with PuTTY SSH

Comments

8 comments

  • quietFinn
    Hi, I follow your blog guide to access with PuTTY SSH , 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.
    0
  • magick
    That means that password authentication is disabled.

    Thank you. Can I enable it?
    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.

    Ok. What must I use as file extension?
    0
  • cPRex Jurassic Moderator
    There is no file extension for that. Do you have root access to the server, or just access to the cPanel account?
    0
  • quietFinn
    Thank you. Can I enable it?

    Do you have root access?
    Ok. What must I use as file extension?

    No file extensions.
    0
  • cPRex Jurassic Moderator
    @quietFinn - JINX!
    0
  • magick
    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".
    0
  • quietFinn
    I'd suggest you generate a new key without a passphrase (i.e. empty passphrase).
    0
  • magick
    @quietFinn without a passphrase it works. Thank you very much!
    0

Please sign in to leave a comment.