Hello, I am unable to login on server by putty,. It shows network error:connection refused What would be the problem? I tried to login by port 22 that may be the port problem What is the way to login on server by ssh entering the correct port? I tried by rescue mode,but i got login,but it was in vain(i am unlabe to edit iptables config, changed port from 2 to any other port,but still error is coming) Actuly my server administrator is on leave. He done some changes on server thank you
He probably changed the SSH port, which is by default 22, but most people change it for security reasons...
# netstat -natp | grep ssh | grep LISTEN Running this command should reveal what port your ssh daemon is listening on (assuming it's running). You might also try: # service sshd stop; service sshd start To restart the ssh daemon in case it stopped running for some reason.
@ramnet how would he do a netstat on a server he can't log into? @KrAzZyBoy if you PM me your domain name, ill tell you what port ssh is running on as long as your server admin didnt lock down ssh, either via a hosts.allow/hosts.deny or via iptables.
if this doesn't work, try editing your firewall entry to allow port 22 to passthrough. with this command "setup" if this is linux