我在远程计算机上没有根权限,但我可以成功通过 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)