使用 SCP 将文件从远程服务器传输到 PC

使用 SCP 将文件从远程服务器传输到 PC

我正在尝试使用该命令,

scp -r [email protected]:/pathto/my/workfolder/ C:/MyPC/Downloads/

复制workfolder到我的电脑。但是,虽然某些文件已成功下载,但下载被中断,并显示以下消息:

Connection reset by (IP address) port 22
Broken pipe

我使用的是 Windows 机器并在CMD窗口中使用此命令。我以前用过这个,但从未遇到过这个问题。最近我搬到了一个有无线网络连接的新地方。以前我使用的是有线连接。问题出在哪里?问题与此处描述的类似,但我没有得到解决方案。

ssh - 通过 [ip] 端口 22 重置连接 (Ubuntu 16.04)

回报nmap myremote.server.fr

Starting Nmap 7.91 ( nmap.org ) at 2021-03-20 19:15 W. Europe Standard Time 
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn Nmap done: 1 IP address (0 hosts up) scanned in 6.34 seconds.

回报nmap -Pn myremote.server.fr

Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times will be slower. 
Starting Nmap 7.91 ( nmap.org ) at 2021-03-20 19:16 W. Europe Standard Time RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 
Nmap scan report for myremote.server.fr (IP address) 
Host is up (1.1s latency). 
Not shown: 999 filtered ports 
PORT STATE SERVICE 
22/tcp open ssh 
Nmap done: 1 IP address (1 host up) scanned in 616.70 seconds.

期待。

相关内容