scp问题:Connection reset by peer

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
xhsh
帖子: 318
注册时间: 2007-06-21 2:52

scp问题:Connection reset by peer

#1

帖子 xhsh » 2009-05-14 15:55

大家好。

我的两台机器之间,ssh都可以相互登陆,但用scp在两台机器间传递文件时,都总是出现如下问题:

Read from socket failed: Connection reset by peer
lost connection

请问这是什么原因?谢谢!!
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: scp问题:Connection reset by peer

#2

帖子 eexpress » 2009-05-14 15:58

全部命令呢?
● 鸣学
xhsh
帖子: 318
注册时间: 2007-06-21 2:52

Re: scp问题:Connection reset by peer

#3

帖子 xhsh » 2009-05-14 16:08

[xhsh@n3 ~]$ scp a.tar n2:
Read from socket failed: Connection reset by peer
lost connection
[xhsh@n3 ~]$
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: scp问题:Connection reset by peer

#4

帖子 eexpress » 2009-05-14 16:10

scp xxx@219.236.60.30:/home/xxx xxx
● 鸣学
xhsh
帖子: 318
注册时间: 2007-06-21 2:52

Re: scp问题:Connection reset by peer

#5

帖子 xhsh » 2009-05-14 16:16

eexpress 写了:scp xxx@219.236.60.30:/home/xxx xxx
还是不行。

说明一下,在我们的n1和n2或者n1和n3之间scp传文件是没有问题的。就是n2和n3之间就是不行。是什么端口没打开还是什么问题?
xhsh
帖子: 318
注册时间: 2007-06-21 2:52

Re: scp问题:Connection reset by peer

#6

帖子 xhsh » 2009-05-16 9:37

有人知道为什么吗?
头像
pityonline
帖子: 3864
注册时间: 2008-12-09 12:44
来自: 北京
联系:

Re: scp问题:Connection reset by peer

#7

帖子 pityonline » 2009-05-16 10:21

scp remoteuser@remoteip:/home/user/file /home/localuser
scp /home/localuser/file remoteuser@remoteip:/home/remoteuser
Pity is the bomp!
活着就是折腾!生命不息,折腾不止!
看这帮家伙在干什么?@pityonline/u
Dropbox+Vps+PC 跑起来了!这是邀请链接
xhsh
帖子: 318
注册时间: 2007-06-21 2:52

Re: scp问题:Connection reset by peer

#8

帖子 xhsh » 2009-05-17 16:41

发现了问题的原因,两台机器网卡的物理地址被改成一样了。改成不一样就可以了。
回复