使用 pscp 将文件传输到 Windows 服务器时出现错误 EOF

使用 pscp 将文件传输到 Windows 服务器时出现错误 EOF

我正在使用 pscp 将文件从我的计算机传输到 Windows 服务器,但它不起作用。

这是我正在使用的命令和结果

pscp -v -scp file_test.txt LOGIN@HOST_ADDRESS:C:.\

Looking up host "HOST_ADDRESS"
Connecting to IP_ADDRESS port 22
Server version: SSH-2.0-OpenSSH_6.6
Using SSH protocol version 2
We claim version: SSH-2.0-PuTTY_Release_0.63
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange with hash SHA-256
Host key fingerprint is:
ssh-rsa *******************************************
Initialised AES-256 SDCTR client->server encryption
Initialised HMAC-SHA-256 client->server MAC algorithm
Initialised AES-256 SDCTR server->client encryption
Initialised HMAC-SHA-256 server->client MAC algorithm
Using username "LOGIN".
Attempting keyboard-interactive authentication
Server refused keyboard-interactive authentication
LOGIN@HOST_ADDRESS's password:
Sent password
Access granted
Opening session as main channel
Opened main channel
Started a shell/command
Using SCP1
Connected to HOST_ADDRESS
Microsoft Windows [Version 6.1.7601]
Sent EOF message

然后就什么都没有了。我做错了什么?

答案1

您的登录 shell 可能会返回输出,从而破坏 scp。

相关内容