Linux – server unexpectedly closed network connection

linux

I am working on a Linux server which pop up's an error

"server unexpecdly closed network connection"

but I am able to ping it. Can anyone help me out with this?

Best Answer

Is SSH protocol/port being allowed in the server's firewall config?
Is the SSH daemon running on the server?
do you have the correct login details (password/keys)?