ssh: connect to host 139.xxx.xxx.xxx port 22: Connection refused

Today I try to connect my server via SSH, but I got this message. What can I do to fix it?

============================================
Tried to connect again, now it's working. Strange I did nothing.

2 Replies

You write:

Today I try to connect my server via SSH, but I got this message. What can I do to fix it?
 
Tried to connect again, now it's working. Strange I did nothing.

This sounds like an sshd(8) connection timeout issue. See here:

https://www.tecmint.com/increase-ssh-connection-timeout/

for an explanation of the various sshd(8) configuration parameter related to timeouts and simultaneous connections.

-- sw

Thanks for the information.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct