The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cannot SSH into VPS

Discussion in 'General Discussion' started by Georgi Georgiev, Jul 31, 2016.

  1. Georgi Georgiev

    Georgi Georgiev Registered

    Joined:
    Jul 31, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bulgaria
    cPanel Access Level:
    Root Administrator
    Hello,
    I have a lowendspirit VPS and I cannot SSH into it. I can access the VPS through the cPanel emergency session and it works ok. However, if I try from my terminal:
    ssh root@<myIP> -p 2202 // I used the same ip from the cPanel emergency session
    I get prompted for password, however, It does not accept my root password.

    I even tried reinstalling the OS on the VPS but this didn't help.
     
  2. NOC_Serverpoint

    NOC_Serverpoint Active Member

    Joined:
    Jul 3, 2016
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    Hello,

    Can you please post the output of :

    ssh root@<myIP> -p 2202 -v

    This will enable the verbose mode and you should be able to see where / why exactly the error occurs during the login.

    Also, try resetting the SSH port / settings via the WHM with the link below:

    http://serverip:2086/scripts2/doautofixer?autofix=safesshrestart

    After running the script, the default port 22 will reset on your cpanel SSH configuration. You can login SSH and reset it.

     
  3. Georgi Georgiev

    Georgi Georgiev Registered

    Joined:
    Jul 31, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bulgaria
    cPanel Access Level:
    Root Administrator
    Code:
    OpenSSH_7.2p2 Ubuntu-4ubuntu1, OpenSSL 1.0.2g-fips  1 Mar 2016
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: /etc/ssh/ssh_config line 19: Applying options for *
    debug1: Connecting to 95.46.198.24 [95.46.198.24] port 2202.
    debug1: Connection established.
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/td100g2/.ssh/id_rsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/td100g2/.ssh/id_rsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/td100g2/.ssh/id_dsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/td100g2/.ssh/id_dsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/td100g2/.ssh/id_ecdsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/td100g2/.ssh/id_ecdsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/td100g2/.ssh/id_ed25519 type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/td100g2/.ssh/id_ed25519-cert type -1
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu1
    debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
    debug1: match: OpenSSH_5.3 pat OpenSSH_5* compat 0x0c000000
    debug1: Authenticating to 95.46.198.24:2202 as 'root'
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: kex: algorithm: diffie-hellman-group-exchange-sha256
    debug1: kex: host key algorithm: ssh-rsa
    debug1: kex: server->client cipher: aes128-ctr MAC: umac-64@openssh.com compression: none
    debug1: kex: client->server cipher: aes128-ctr MAC: umac-64@openssh.com compression: none
    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(2048<3072<8192) sent
    debug1: got SSH2_MSG_KEX_DH_GEX_GROUP
    debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
    debug1: got SSH2_MSG_KEX_DH_GEX_REPLY
    debug1: Server host key: ssh-rsa SHA256:9RSxc0zYnf0s4bxBLtYgyQhv4XDrpFkBZEoHHbopRqU
    debug1: Host '[95.46.198.24]:2202' is known and matches the RSA host key.
    debug1: Found key in /home/td100g2/.ssh/known_hosts:3
    debug1: rekey after 4294967296 blocks
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug1: rekey after 4294967296 blocks
    debug1: SSH2_MSG_NEWKEYS received
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
    debug1: Next authentication method: gssapi-keyex
    debug1: No valid Key exchange context
    debug1: Next authentication method: gssapi-with-mic
    debug1: Unspecified GSS failure.  Minor code may provide more information
    No Kerberos credentials available
    
    debug1: Unspecified GSS failure.  Minor code may provide more information
    No Kerberos credentials available
    
    debug1: Unspecified GSS failure.  Minor code may provide more information
    
    
    debug1: Unspecified GSS failure.  Minor code may provide more information
    No Kerberos credentials available
    
    debug1: Next authentication method: publickey
    debug1: Trying private key: /home/td100g2/.ssh/id_rsa
    debug1: Trying private key: /home/td100g2/.ssh/id_dsa
    debug1: Trying private key: /home/td100g2/.ssh/id_ecdsa
    debug1: Trying private key: /home/td100g2/.ssh/id_ed25519
    debug1: Next authentication method: password
    root@95.46.198.24's password:
    debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
    Permission denied, please try again.
    
     
    #3 Georgi Georgiev, Jul 31, 2016
    Last edited by a moderator: Jul 31, 2016
  4. Georgi Georgiev

    Georgi Georgiev Registered

    Joined:
    Jul 31, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bulgaria
    cPanel Access Level:
    Root Administrator
    Tried this link w/ the ip of the VPS but it took me to the "Connection failed" + "Try again" page. I still cannot resolve this.

    I don't think it will be too much of a problem. However, why is the "Serial Console" not recommended as a general way of accessing the VPS ?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page