小编Ala*_*avi的帖子

scp 和 rsync 不工作(ssh 工作)

在我的Debian挤压服务器,scp并且rsync似乎没有任何东西拷贝过来。虽然与另一台服务器一起工作正常(所以不是客户端问题)。使用 scp 时,它只会创建一个空文件并等待。/etc/bash.bashrc也包含[ -z "$PS1" ] && return在顶部。SSH 工作正常。可能是什么问题?

诊断

foo.bar:大小为 10899 字节的纯文本文件

scp -vvv /tmp/foo.bar server:/tmp

Executing: program /usr/bin/ssh host server, user (unspecified), command scp -v -t -- /tmp
OpenSSH_5.8p1-hpn13v10, OpenSSL 1.0.0d 8 Feb 2011
debug1: Reading configuration data /home/alanhaggai/.ssh/config
debug1: Applying options for server
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to server.com [111.222.111.222] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could …
Run Code Online (Sandbox Code Playgroud)

ssh rsync scp

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

标签 统计

rsync ×1

scp ×1

ssh ×1