1 2 3 4 5 6 7 8 | [root@C64~]# uname -n C64 [root@C64~]# cat /etc/hosts #modi by oldboy 11 : 12 2013 / 9 / 24 127.0 . 0.1 C64 localhost localhost.localdomain localhost4 localhost4.localdomain4 :: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6 10.0 . 0.18 C64 ################ |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | [root@C64~]# ssh -v root@ 10.0 . 0.19 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 10.0 . 0.19 [ 10.0 . 0.19 ] 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_4. 3 debug1: match: OpenSSH_4. 3 pat OpenSSH_4* debug1: Enabling compatibility mode forprotocol 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 The authenticity of host '10.0.0.19 (10.0.0.19)' can't be established. RSA key fingerprint is ca: 18 : 42 : 76 :0e:5a:1c:7d:ef:fc: 24 : 75 : 80 : 11 :ad:f9. Are you sure you want to continue connecting (yes/no)? yes =======>老男孩老师评:这里就是提示保存密钥的交互提示。 Warning: Permanently added '10.0.0.19' (RSA) to the list of known hosts. 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: 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@ 10.0 . 0.19 's password: =======>老男孩老师评:这里就是提示输入密码的交互提示。 debug1: Authentication succeeded (password). debug1: channel 0 : new [client-session] debug1: Entering interactive session. debug1: Sending environment. debug1: Sending env LANG = en_US.UTF- 8 Last login: Tue Sep 24 10 : 30 : 02 2013 from 10.0 . 0.18 在远程连接时如果慢就可以确定卡在哪了。 [root@C64_A~]# ssh -v oldboy@ 10.0 . 0.17 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 10.0 . 0.17 [ 10.0 . 0.17 ] 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 2 debug1: Remote protocol version 2.0 , remote software version OpenSSH_5. 3 debug1: match: OpenSSH_5. 3 pat OpenSSH* debug1: Enabling compatibility mode forprotocol 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 '10.0.0.17' 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-keyex,gssapi- with -mic,password debug1: Next authentication method: gssapi-keyex debug1: No valid Key exchange context debug1: Next authentication method: gssapi- with -mic |
实际上在linux系统优化部分就应该优化SSH服务的此处。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
2015-10-10 好前途
2015-10-10 MYSQL: Cannot delete or update a parent row: a foreign key constraint fails
2014-10-10 OpenStack high-level Functionsenabled
2014-10-10 yum cannot retrieve metalink for repository
2014-10-10 OpenStack Block Storage安装配置use LVM
2013-10-10 cpu真实核数
2013-10-10 exp