s****l 发帖数: 10462 | 1 有两台机器,两者之间建立scp or ssh的时间明细比和其他机器建立scp/ssh的时间要
长。给个代号,好说明一点:
A scp/ssh to B takes 20 seconds
B scp/ssh to A takes 10 seconds
以上是不正常的现象;下面的速度我觉得正常
A scp/ssh to C or D takes 2 seconds
B scp/ssh to C or D takes 2 seconds
C or D scp/ssh to A takes 2 seconds
C or D scp/ssh to B takes 2 seconds
但是所有的机器之间一旦建立连线之后的传输速度都不慢,至少没有明显不同。
请问为什么?谢谢
不知道这个有没有关系
A, openSuse
B, Ubuntu
C, Ubuntu
D, Ubuntu
补充
http://www.walkernews.net/2009/04/06/how-to-fix-scp-and-ssh-log
prompt-is-very-slow-in-linux/
在以上网页找到了解决方法,虽然不是很懂这个GSSAPI Authentication具体是什么。。。。 | S*A 发帖数: 7142 | 2 I guess it has some thing to do with the reverse dns lookup. | t*******y 发帖数: 1289 | 3 use -v to check which step takes long time | s****l 发帖数: 10462 | 4 Nice!
Here is what I got, it looks all good until "cannot....", which I marked
with ~~~~~~~~~ signs.
Executing: program /usr/bin/ssh host 10.33.60.69, user tony.xu, command scp
-v -t ~
OpenSSH_5.3p1 Debian-3ubuntu7, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 10.33.60.69 [10.33.60.69] port 22.
debug1: Connection established.
debug1: identity file /home/txu/.ssh/identity type -1
debug1: identity file /home/txu/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/txu/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.0
debug1: match: OpenSSH_5.0 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu7
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr 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 '10.33.60.69' is known and matches the RSA host key.
debug1: Found key in /home/txu/.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,keyboard-interactive
debug1: Next authentication method: gssapi-with-mic
debug1: An invalid name was supplied
Cannot determine realm for numeric host address ~~~~~~~~~~~~~~
debug1: An invalid name was supplied
Cannot determine realm for numeric host address ~~~~~~~~~~~~~~
debug1: An invalid name was supplied ~~~~~~~~~~~~~~~~~~
debug1: Next authentication method: publickey
debug1: Trying private key: /home/txu/.ssh/identity
debug1: Offering public key: /home/txu/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting n**************[email protected]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: scp -v -t ~
Sending file modes:
file transferring message deleted.
Transferred: sent 548620800, received 129880 bytes, in 16.7 seconds
Bytes per second: sent 32818598.7, received 7769.4
debug1: Exit status 0
【在 t*******y 的大作中提到】 : use -v to check which step takes long time
| s****l 发帖数: 10462 | |
|