相关疑难解决方法(0)

像 scp 一样使用 sftp

正如 OpenSSH 人所说的“scp 协议已经过时”,是时候考虑后 scp 时代了。

不过sftp好像是为了交互操作而设计的。有没有sftp像这样使用命令的好方法scp?意味着,如何做到这一点sftp

scp ./myfile myserver:/home/myfile
Run Code Online (Sandbox Code Playgroud)

或者,有什么好的scp继任者?

linux scp openssh sftp

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

使用 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 ×2

openssh ×2

scp ×2

sftp ×1

ssh ×1