A
A
Asya2021-03-06 21:59:50
linux
Asya, 2021-03-06 21:59:50

How to reconnect via ssh?

I copied files from the server to my laptop through scp -r [email protected]:/home/data/ ./
and on some file (apparently it turned out to be too huge because it was only 60% copied in the end), I got an error

client_loop: send disconnect: Broken pipe
lost connection

and now when i try to login ssh [email protected]to the server i get:
ssh: connect to host <ip> port 22: Operation timed out

and through mosh [email protected]it falls out
/usr/local/bin/mosh: Could not connect to <ip>, last tried <ip>: IO::Socket::INET: connect: Operation timed out
kex_exchange_identification: Connection closed by remote host
/usr/local/bin/mosh: Did not find remote IP address (is SSH ProxyCommand disabled?).


through
ssh [email protected]
OpenSSH_8.2p1 Ubuntu-4ubuntu0.1, OpenSSL 1.1.1f  31 Mar 2020
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname <ip> is address
debug2: ssh_connect_direct
debug1: Connecting to<ip> [<ip>] port 22.
debug1: connect to address <ip> port 22: Resource temporarily unavailable
ssh: connect to host <ip> port 22: Resource temporarily unavailable


I specifically decided to copy the files so that the server would not freeze when I was working on them, but in the end it freezes at the copying stage. how to fix???

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
rPman, 2021-03-06
@asyaevloeva

ssh: connect to host port 22: Operation timed out
look at ssh
, the hoster can have a server console in the admin panel (read direct access to the machine as if you were sitting at its keyboard and monitor), right in the browser. But you will need a user password, i.e. can't access the key.
otherwise, restart the server, all hosters provide such an opportunity

P
pfg21, 2021-03-06
@pfg21

use rsync over ssh , he doesn’t care about breaks
, I’ll also advise you to raise syncting and just synchronize folders between yourself and the server

C
Cunning Fox, 2021-03-07
@Cunning_Fox

Ubuntu use sudo screen -D -r after sudo su - (if not root).

O
Oleg Volkov, 2021-03-07
@voleg4u

And it is very similar to duplicate IP, as if some kind of Windows sat on this IP address.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question