Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question