vCenter

 View Only
Expand all | Collapse all

Access denied root ssh

  • 1.  Access denied root ssh

    Posted Jan 10, 2018 04:34 PM

    Hi,

    I was connect by ssh to the server vCenter with the root account, and, today, when i tried to connect to the server vCenter by ssh, i receive this error message:

    But, for example, if i try to connect to the server with the root account on Internet, i can connect without problem:

    What is the problem?

    Thanks so much.



  • 2.  RE: Access denied root ssh

    Posted Jan 10, 2018 05:18 PM

    The new version of PuTTY has a new authentication GSSAPI feature. This allows users to log in with out a password but will not mount a users home directory. We have had several users using the new version of PuTTY who could not log in to kerbNFSv4 system.

    To overcome this problem you must disable GSSAPI authentication.

    To do this in PuTTY go to
    Connection –> SSH –> Auth –> uncheck “Attempt Kerberos 5 GSSAPI/SSPI auth (SSH-2)”
    or
    Connection –> SSH –> Auth –> GSSAPI –> uncheck “Allow GSSAPI Authentication (SSH-2 only)”

    See the following images.

    Putty_sshAuthentication

    Putty-gssapi

    If you found my answers useful please consider marking them as Correct OR Helpfu

    Regards,

    Randhir



  • 3.  RE: Access denied root ssh

    Posted Jan 11, 2018 09:01 AM

    Thanks so much for your reply ranchuab

    I tried the solution that you gave me, but, unfortunately, the problem persists.



  • 4.  RE: Access denied root ssh

    Posted Jan 11, 2018 03:14 PM

    Is SSH shell enabled along with Bash from the VAMI?



  • 5.  RE: Access denied root ssh

    Posted Jan 11, 2018 12:39 PM

    Could you please tell me your Putty release version so i will test in my Lab for this issue .....

    Regards,

    Randhir



  • 6.  RE: Access denied root ssh

    Posted Jan 12, 2018 11:44 AM

    Hi ranchuab,

    my Putty version is:

    Thanks so much to try help me.



  • 7.  RE: Access denied root ssh

    Posted Jan 12, 2018 02:22 PM

    Thank you for sharing screen shot.

    I suspect problem in /etc/ssh/sshd_config

    Can you check "PermitRootLogin  should be Yes.

    Regards,

    Randhir



  • 8.  RE: Access denied root ssh
    Best Answer

    Posted Jan 12, 2018 05:26 PM

    Hello

    /etc/ssh/sshd_config



  • 9.  RE: Access denied root ssh

    Posted Jan 15, 2018 08:01 AM

    Thanks so much ranchuab

    But, if i can not to connect to the server, how can i do to test your solution?

    Because, when i try to connect to the server with the root account, i receive the error message: Access denied



  • 10.  RE: Access denied root ssh

    Posted Aug 22, 2023 07:22 PM

    Hi! How did you get in to modify the files if you could not sign in? 



  • 11.  RE: Access denied root ssh

    Posted Jan 24, 2024 03:30 PM

    Good question.  How can you modify /etc/ssh/sshd_config to SSH into the ESXi if you cannot already SSH?



  • 12.  RE: Access denied root ssh

    Posted Jan 15, 2018 03:56 PM

    Thanks so much ranchuab

    Your answer solved my issue.