dubo的个人博客分享 http://blog.sciencenet.cn/u/dubo

博文

ssh登录时间太长

已有 9088 次阅读 2013-1-15 16:48 |个人分类:集群管理|系统分类:科研笔记| 时间, Password, SSH, continue

debug1: Authentications that can continue: publickey,password时间太长的问题解决
A)首先使用[root@gpucenter release]#  ssh -v 192.168.1.111@192.168.1.111
OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.1.111 [192.168.1.111] 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: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
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 '192.168.1.111' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:3
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,password
debug1: Next authentication method: publickey
debug1: Offering public key: dubo_root_61
debug1: Authentications that can continue: publickey,password
debug1: Offering public key: rsa-key-bodu-9number
debug1: Authentications that can continue: publickey,password
debug1: Offering public key: dubo61dubo
debug1: Authentications that can continue: publickey,password
debug1: Offering public key: dubo61dubo
debug1: Authentications that can continue: publickey,password
debug1: Offering public key: bodu
debug1: Authentications that can continue: publickey,password
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
192.168.1.111@192.168.1.111's password:
发现debug1: Authentications that can continue: publickey,password
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
这一步导致速度变慢。
 
B)网上查去资料得知为使用了DNS问题(http://bbs.chinaunix.net/forum.php?mod=viewthread&action=printable&tid=1974805
===============解决方案==========================
vim /etc/ssh/sshd_config
UseDNS no
service sshd restart
 
 


https://blog.sciencenet.cn/blog-464042-653412.html

上一篇:LINUX 程序出错Segmentation fault (core dumped)
下一篇:查看集群结点无任务负载较小时,自动提交程序 脚本
收藏 IP: 202.113.8.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-11-25 18:00

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部