linux下使用scp非常怪异的问题 快来看看

fabby 发布于 2015/04/06 16:26
阅读 2K+
收藏 0

我使用scp传输文件,用的是虚拟机,两台同时开启,一台192.168.1.65这个用scp完全没问题,可以使用命令发过去,也可以使用命令拉文件过来,但是我的另一台linux192.168.1.63则不行,不能成功发送文件,也没有进度调,但是给自己发文件又没问题,有进度条。请问这个原因是什么呢!

 ps 防火墙我的都关闭了的。

我使用了-v写显示了详细信息,请问各位来看看,多多指教。



[root@Server scptest]#



 scp -v bbb.txt root@192.168.1.63:/root/


Executing: program /usr/bin/ssh host 192.168.1.63, user root, command scp -v -t /root/


OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008


debug1: Reading configuration data /etc/ssh/ssh_config


debug1: Applying options for *


debug1: Connecting to 192.168.1.63 [192.168.1.63] port 22.


debug1: Connection established.


debug1: permanently_set_uid: 0/0


debug1: identity file /root/.ssh/identity type -1


debug1: identity file /root/.ssh/id_rsa type -1


debug1: identity file /root/.ssh/id_dsa type -1


debug1: loaded 3 keys


debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3


debug1: match: OpenSSH_4.3 pat OpenSSH*


debug1: Enabling compatibility mode for protocol 2.0


debug1: Local version string SSH-2.0-OpenSSH_4.3


debug1: SSH2_MSG_KEXINIT sent


debug1: SSH2_MSG_KEXINIT received


debug1: kex: server->client aes128-cbc hmac-md5 none


debug1: kex: client->server aes128-cbc hmac-md5 none


debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent


debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP


debug1: SSH2_MSG_KEX_DH_GEX_INIT sent


debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY


debug1: Host '192.168.1.63' is known and matches the RSA host key.


debug1: Found key in /root/.ssh/known_hosts:2


debug1: ssh_rsa_verify: signature correct


debug1: SSH2_MSG_NEWKEYS sent


debug1: expecting SSH2_MSG_NEWKEYS


debug1: SSH2_MSG_NEWKEYS received


debug1: SSH2_MSG_SERVICE_REQUEST sent


debug1: SSH2_MSG_SERVICE_ACCEPT received


debug1: Authentications that can continue: publickey,gssapi-with-mic,password


debug1: Next authentication method: gssapi-with-mic


debug1: Unspecified GSS failure.  Minor code may provide more information


No credentials cache found






debug1: Unspecified GSS failure.  Minor code may provide more information


No credentials cache found






debug1: Unspecified GSS failure.  Minor code may provide more information


No credentials cache found






debug1: Next authentication method: publickey


debug1: Trying private key: /root/.ssh/identity


debug1: Trying private key: /root/.ssh/id_rsa


debug1: Trying private key: /root/.ssh/id_dsa


debug1: Next authentication method: password


root@192.168.1.63's password:


debug1: Authentication succeeded (password).


debug1: channel 0: new [client-session]


debug1: Entering interactive session.


debug1: Sending environment.


debug1: Sending env LANG = zh_CN.UTF-8


debug1: Sending command: scp -v -t /root/


Sending file modes: C0644 5 bbb.txt


Sink: C0644 5 bbb.txt


bbb.txt                                                                                                                            100%    5     0.0KB/s   00:00


debug1: client_input_channel_req: channel 0 rtype exit-status reply 0


debug1: channel 0: free: client-session, nchannels 1


debug1: fd 0 clearing O_NONBLOCK


debug1: fd 1 clearing O_NONBLOCK


debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.1 seconds


debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0


debug1: Exit status 0


[root@Server scptest]#


































[root@Server scptest]#


 scp -v bbb.txt root@192.168.1.65:/root/
Executing: program /usr/bin/ssh host 192.168.1.65, user root, command scp -v -t /root/
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.1.65 [192.168.1.65] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: loaded 3 keys
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.1.65' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
No credentials cache found


debug1: Unspecified GSS failure.  Minor code may provide more information
No credentials cache found


debug1: Unspecified GSS failure.  Minor code may provide more information
No credentials cache found


debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: password
root@192.168.1.65's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = zh_CN.UTF-8
debug1: Sending command: scp -v -t /root/
2015年 04月 06日 星期一 16:14:43 CST
[root@Server scptest]# debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.1 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 0



加载中
0
马博文
马博文
可以看下虚拟机的网络设置模式么? 是不是host-only?
0
netkiller-
netkiller-
可能与加密算法有关系, 改用 RSA, DES 就可以了
返回顶部
顶部