Error: User add failed. Cannot add user on this node: FAILED: to establish SSH session

 Error: User add failed. Cannot add user on this node: FAILED: to establish SSH session

  • Make sure iptables / firewall is not blocking ssh traffic

        Add the following to allow localhost in iptables / firewall

[email protected] :~# iptables -A INPUT -p tcp -s localhost -j ACCEPT
[email protected] :~# csf -a 127.0.0.1

Check if you are able to ssh " ssh root@localhost "  /  " ssh [email protected] "  (Specify the ssh port with -p variable if you are using  a custom SSH port)

  • Make sure SSHD is not blocked in /etc/hosts.allow or /etc/hosts.deny

         Add the following to allow localhost in /etc/hosts.allow or  /etc/hosts.deny

sshd : localhost : allow

  • If you are using custom sshd port in your gateway, then make sure its updated under Settings->Miscellaneous->SSH Gateway Port is set to the current SSHD listening port on the ssh gateway  server.

         Check your ssh port with the following command 

[[email protected] ~]#   cat /etc/ssh/sshd_config | grep Port

# Port 22

#Gateway Ports no

         
   If you are using custom ssh port ,make sure its updated under Settings->Miscellaneous->SSH Gateway Port
 
   
0 (0)
Article Rating (No Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    Unable to open ssh session
    Viewed 1926 times since Thu, Jun 15, 2017
    "Blank page" error in webssh console
    Viewed 1142 times since Tue, Jan 30, 2018
    Token not found in Cpanel/WHM
    Viewed 3202 times since Wed, Jun 14, 2017
    Configuration and error log files to check for troubleshooting
    Viewed 3492 times since Thu, Jun 15, 2017
    Can we map existing user group in ldap to ezeelogin as ezeelogin user group ?
    Viewed 2993 times since Mon, Sep 25, 2017
    Error: Server login failed. sh: /usr/local/ezlogin/ezutil: Permission denied
    Viewed 1823 times since Wed, Jun 14, 2017
    NODE_RDP_PROTOCOL_X224_NEG_FAILURE()
    Viewed 1746 times since Fri, Feb 2, 2018
    Blank page when accessing Ezeelogin web panel or GUI
    Viewed 2174 times since Wed, Jun 14, 2017
    reCaptcha: Could not open socket Connection timed out
    Viewed 2787 times since Wed, Jun 14, 2017
    main admin user account suspended after entering incorrect security code
    Viewed 1958 times since Wed, Jun 14, 2017