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

root@gateway :~# iptables -A INPUT -p tcp -s localhost -j ACCEPT
root@gateway :~# csf -a 127.0.0.1

Check if you are able to ssh " ssh root@localhost "  /  " ssh root@127.0.0.1 "  (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 

[root@gateway ~]#   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
 
   
5 (1)
Article Rating (1 Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    Install not allowed on this server
    Viewed 314 times since Fri, Mar 20, 2020
    User add failed
    Viewed 3034 times since Wed, Jun 14, 2017
    How to reset Ezeelogin admin user password or security code
    Viewed 4510 times since Thu, Jun 15, 2017
    "Error: LDAP extension is not installed".
    Viewed 2754 times since Fri, Sep 8, 2017
    Error opening terminal: xterm-256color.
    Viewed 959 times since Wed, Jul 31, 2019
    Failed to Connect to IP: Permission Denied cPanel / WHM login
    Viewed 3254 times since Thu, Jun 15, 2017
    what port should i open on my server firewall to fetch ezeelogin license?
    Viewed 3119 times since Wed, Aug 16, 2017
    PHP function ’exec’ is not available.
    Viewed 2852 times since Thu, Jun 15, 2017
    " Could not setup Ezeelogin Web SSH service " error
    Viewed 2702 times since Wed, Jan 31, 2018
    Unable to login into cpanel/whm with one click
    Viewed 6099 times since Wed, Jun 14, 2017