Remote sshd prompt: server unexpectedly closed network connection

[[email protected]]# vim /etc/sshd_config // modify port 3330
[[email protected]]# iptables -i inpu-p TCP — dport 3330-j ACCEPT // add firewall 3330 port allow
[[email protected]]# service iptables save // save rule
[[email protected]]# service SSH Restart SSH //

Read More: