由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - scp/ssh的建立速度很慢,怎么回事?(已解决)
相关主题
一个ssh 诡异的问题ubuntu的ssh不行了
ssh连接问题ssh 连 X 速度巨慢!
请教个问题远程桌面实现不少...
哪个推荐一下linux下好用的ssh2工具?Macbook 用 virtualbox 装 Ubuntu
这个登录失败log什么意思?请介绍一下dd-wrt
svnserver怎么把现在机器上的所有用户加入svn用户呢?俺土俺知道
howto install vboxguestadditions on CentOS.为什么fedeora下的openssh不自动运行?
【问题】ssh不能以root远程登录ssh 不能显示中文
相关话题的讨论汇总
话题: debug1话题: ssh话题: scp话题: ssh2话题: msg
进入Linux版参与讨论
1 (共1页)
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
5
http://www.walkernews.net/2009/04/06/how-to-fix-scp-and-ssh-log
在以上网页找到了解决方法,虽然不是很懂这个GSSAPI Authentication具体是什么。
。。。
1 (共1页)
进入Linux版参与讨论
相关主题
ssh 不能显示中文这个登录失败log什么意思?
Question on access linux VM in other people's homesvnserver怎么把现在机器上的所有用户加入svn用户呢?
Ubuntu太差了howto install vboxguestadditions on CentOS.
transfer a tar.gz file from Linux server to win7 desktop (转载)【问题】ssh不能以root远程登录
一个ssh 诡异的问题ubuntu的ssh不行了
ssh连接问题ssh 连 X 速度巨慢!
请教个问题远程桌面实现不少...
哪个推荐一下linux下好用的ssh2工具?Macbook 用 virtualbox 装 Ubuntu
相关话题的讨论汇总
话题: debug1话题: ssh话题: scp话题: ssh2话题: msg