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.