E
E
Egor Babintsev2019-10-22 14:43:35
SSH
Egor Babintsev, 2019-10-22 14:43:35

How to fix hangup when connecting via ssh?


ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]
I connected to the server via ssh several times, I got tired of entering the password all the time and I wanted to bind the key to log in without a password, I found a guide on the Internet in which I had to generate the key and then enter this command (of course, I replaced user and ip with my own): During the authorization, it turned out that I entered the wrong password several times and I got permission denied several times, and then the session simply ended. From that moment on, the ssh connection to this server freezes immediately after entering the command in the terminal (no password, nothing, it just freezes and throws out the connection timed out after a while). The -vvvv output does not show any errors.

OpenSSH_8.0p1 Ubuntu-6build1, OpenSSL 1.1.1c  28 May 2019
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolve_canonicalize: hostname 31.31.198.44 is address
debug2: ssh_connect_direct
debug1: Connecting to 31.31.198.44 [31.31.198.44] port 22.
debug1: connect to address 31.31.198.44 port 22: Connection timed out
ssh: connect to host 31.31.198.44 port 22: Connection timed out

What is the problem? Is it because of the wrong password, or because of something else? Many thanks in advance for your help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PrAw, 2019-10-22
@egor_babintsev

Most likely, the Fail2ban rule has worked and your IP has been blacklisted.
Try to log in from a different IP address
Ask the administrator - how to be
Reboot the server through the hoster panel

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question