小编k4m*_*p3t的帖子

使用 scp 复制文件失败(debug1:退出状态 -1)

我想将单个文件从远程服务器复制到本地计算机。

我在远程计算机上没有根权限,但我可以成功通过 SSH 连接到给定密码的用户。

然而,在实际复制任何内容之前,连接已关闭。

这是我尝试过的:

scp -P PORT user@SRC_HOST:/tmp/file /home/k4mp3t/

使用详细模式我得到以下输出:

debug1: Next authentication method: password
Authenticated to HOST.IP ([IP]:PORT) using "password".
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: filesystem
debug1: Sending subsystem: sftp
scp: Connection closed
debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 2896, received 3328 bytes, in 0.1 seconds
Bytes per second: …
Run Code Online (Sandbox Code Playgroud)

linux ssh scp openssh

5
推荐指数
1
解决办法
8503
查看次数

标签 统计

linux ×1

openssh ×1

scp ×1

ssh ×1