K
K
kolbin2018-04-13 09:17:22
linux
kolbin, 2018-04-13 09:17:22

Linux aborts copy to mc via ssh. How to solve the problem?

I have 2 systems:
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL=" https://www.debian .org/ "
SUPPORT_URL=" https://www.debian.org/support "
BUG_REPORT_URL=" https://bugs.debian.org/ "
1. Log in via SSH, open mc, connect via sftp to a neighboring server, copy file - everything is copied normally.
5ad04acd1e9ee995174288.jpeg
I log in via SSH to another server, open mc, connect via sftp to the first server, copy the file - an error occurs (below, a red sign), after pressing any button, mc falls off (even lower), and writes "
5ad04adcc4bcb445213011.jpeg
The capacity of both servers should be more than enough. There is room for all sections. RAM is occupied by 5-10%. I don't blame iron. Everything is done over SSH. Monitors are not connected.
I understand that the problem is probably in the bashrc settings, because out of the box stretch has a problem with the Russian language, I fixed it on both servers, but I don’t remember how. Now there are no problems with Cyrillic either in mc or in other programs, but mc only swears at large files when working via ssh. Tried as root - same result. I am attaching screenshots. Photo 1 - normally copied from one to the second.
Photo 2 - when logging from another server to the first - an error.
Help solve the problem.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Spheniscus, 2018-04-13
@Spheniscus

Copying through the scp command of the console will help, and not through mc

B
Boris Syomov, 2018-04-13
@kotomyava

However, according to the screenshot, the problem occurs during memory allocation, and MC, most likely kills oom. And judging by the amount of allocated memory, MC wants to buffer the entire file in memory until the end of its reception, and there is probably not enough memory for this.
It's worth looking at dmesg for that. And also, try the console sftp client.

R
Reversaidx, 2018-04-13
@Reversaidx

Use rsync in screen (both are Googled at times)
1. apt-get install screen
2. screen
3. rsync -av /sours/ /dest/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question