本来服务器登陆好好的,不知道怎么回事,突然变慢了,debug一下,看看原因。
WaveMac:~ zlpx$ ssh -vvv root@wavehome OpenSSH_5.9p1, OpenSSL 0.9.8y 5 Feb 2013 debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to wavehome [192.168.1.111] port 22. debug1: Connection established. debug1: identity file /Users/zlpx/.ssh/id_rsa type -1 debug1: identity file /Users/zlpx/.ssh/id_rsa-cert type -1 debug1: identity file /Users/zlpx/.ssh/id_dsa type -1 debug1: identity file /Users/zlpx/.ssh/id_dsa-cert 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.9 debug2: fd 3 setting O_NONBLOCK debug3: load_hostkeys: loading entries for host "wavehome" from file "/Users/zlpx/.ssh/known_hosts" debug3: load_hostkeys: found key type RSA in file /Users/zlpx/.ssh/known_hosts:2 debug3: load_hostkeys: loaded 1 keys debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa,ssh-dss-cert-v01@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-dss debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,zlib@openssh.com debug2: kex_parse_kexinit: none,zlib@openssh.com debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: mac_setup: found hmac-md5 debug1: kex: server->client aes128-ctr hmac-md5 none debug2: mac_setup: found hmac-md5 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 debug2: dh_gen_key: priv key bits set: 135/256 debug2: bits set: 506/1024 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Server host key: RSA 34:60:80:85:6d:fb:5b:d7:cb:88:bd:6f:5f:b7:52:37 debug3: load_hostkeys: loading entries for host "wavehome" from file "/Users/zlpx/.ssh/known_hosts" debug3: load_hostkeys: found key type RSA in file /Users/zlpx/.ssh/known_hosts:2 debug3: load_hostkeys: loaded 1 keys debug3: load_hostkeys: loading entries for host "192.168.1.111" from file "/Users/zlpx/.ssh/known_hosts" debug3: load_hostkeys: found key type RSA in file /Users/zlpx/.ssh/known_hosts:1 debug3: load_hostkeys: loaded 1 keys debug1: Host 'wavehome' is known and matches the RSA host key. debug1: Found key in /Users/zlpx/.ssh/known_hosts:2 debug2: bits set: 523/1024 debug1: ssh_rsa_verify: signature correct debug2: kex_derive_keys debug2: set_newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug2: set_newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: Roaming not allowed by server debug1: SSH2_MSG_SERVICE_REQUEST sent debug2: service_accept: ssh-userauth debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: /Users/zlpx/.ssh/id_rsa (0x0) debug2: key: /Users/zlpx/.ssh/id_dsa (0x0) debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password debug3: preferred publickey,keyboard-interactive,password debug3: authmethod_lookup publickey debug3: remaining preferred: keyboard-interactive,password debug3: authmethod_is_enabled publickey debug1: Next authentication method: publickey debug1: Trying private key: /Users/zlpx/.ssh/id_rsa debug3: no such identity: /Users/zlpx/.ssh/id_rsa debug1: Trying private key: /Users/zlpx/.ssh/id_dsa debug3: no such identity: /Users/zlpx/.ssh/id_dsa debug2: we did not send a packet, disable method debug3: authmethod_lookup password debug3: remaining preferred: ,password debug3: authmethod_is_enabled password debug1: Next authentication method: password root@wavehome's password:
登陆卡在下面两句之间,不知道怎么回事。搜索了网上很多方法,都不解决问题。
debug2: key: /Users/zlpx/.ssh/id_dsa (0x0)
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
后来发现,是DNS的捣的鬼,家里的环境没有DNS,但是有一步要检查。去/etc/ssh下把sshd_config 文件中改了一下,把 UseDNS no 设置上,登陆一切正常,反应很快了。
相关推荐
本文将详细介绍如何解决CentOS系统通过SSH连接时出现的中文乱码问题。 #### 问题背景 在安装CentOS系统时,如果选择中文作为默认语言,通常情况下,在本地图形界面中可以正常显示中文。但在通过SSH远程连接时,...
vmware: 解决centos7复制虚拟机后ssh无法登陆问题,复制sshd_config文件到 /etc/ssh文件夹下即可。
在`centos01`上,使用`ssh-copy-id`命令将公钥复制到`centos02`,命令格式为`ssh-copy-id -i ~/.ssh/id_rsa.pub hadoop01@192.168.152.138`。同样,也要从`centos02`复制公钥到`centos01`。 4. **权限设置**:确保`...
Centos 通过 SSH 远程桌面登录 Centos 通过 SSH 远程桌面登录是指使用 Secure Shell(SSH)协议连接到 Centos 服务器,并使用远程桌面协议(Remote Desktop Protocol,RDP)访问 Centos 服务器桌面的一种方法。这种...
SSH无法远程到centos系统解决方法
本文将详细介绍如何在CentOS 7上安装SSH 8.6和OpenSSL 1.1.1k版本,以及相关的RPM(Red Hat Package Manager)包。 SSH 8.6是SSH通信协议的最新稳定版本,提供更高级的安全性和性能优化。它允许用户通过不安全的...
Centos7离线升级SSH版本到9.0,所有依赖文件都已经下载好了,不用连接互联网,只需要执行01-ssh9.0-upgrade.sh脚本一键安装。
### CentOS 7 设置 SSH 服务自动启动 #### 实验环境 - **操作系统**: CentOS 7 Minimal 安装 - **目的**: 设置 SSH 服务在系统启动时自动运行,并且能够修改 SSH 的监听端口。 #### SSH 简介 SSH(Secure Shell)...
CentOS 7 配置 SSH 服务 CentOS 7 配置 SSH 服务是 Linux 环境下部署 SSH 服务实现本机远程连接服务器的必备技能,尤其是运维人员。下面将详细介绍 CentOS 7 设置 SSH 服务以及端口的修改。 一、安装 SSH 服务 在...
最近项目要求数据传必须使用sftp,但sftp又不能直接使用22端口,不安全,网上查询的ssh和sftp分离相关的资料都是基于centos7的,于是经过研究尝试,完成了基于centos6版本的服务分离
内容概要:本文详细描述了 CentOS 7.9 系统安装完毕后遇到的 SSH 连接认证延迟的问题,并提供了解决该问题的方法。具体表现为在内网环境能够顺利进行 ping 测试,但在使用 SSH 远程连接时,会出现约10秒的时间延迟。...
在Windows 7操作系统中,通过SSH(Secure Shell)连接到远程Linux系统,如CentOS 7,进行图形化界面操作,通常需要借助第三方工具。在这个场景下,我们使用PuTTY作为SSH客户端,而Xming作为X Window System的本地...
要配置SSH服务,首先需要在CentOS上安装SSH服务。在CentOS 5.3版本中,可以通过`yum install ssh`命令来安装SSH。安装完成后,可以使用`service sshd start`启动SSH服务,并使用`chkconfig sshd on`将其设置为开机...
### CentOS之SSH安装详解 #### 一、SSH简介 SSH,即Secure Shell,是由IETF (Internet Engineering Task Force) 的网络工作组制定的一种基于应用层和传输层的安全协议。它的主要功能是在非安全网络上提供安全的...
centos7.x_ssh9.3p1_ssl1.1.1u升级脚本, 特点: 1、同时升级openssh与openssl,采用rpm包形式,一键快速升级版本,无需每台单独再次进行编译, 2、隐藏openssh-版本号 3、保留scp与ssh-copy-id命令 安装: 执行 ...
3、保留scp与ssh-copy-id命令 4、已默认安全加固(已有配置跳过) 使用方法: 将压缩包上传到服务器,使用unzip 解压 然后输入命令: sh upgrade.sh 。 运行upgrade_ssl_ssh.sh文件 运行完成后输入:ssh -V 然后就...
本文将详细讲解如何在CentOS 6.5上升级SSH到7.7版本,以及解决升级后可能出现的问题。 首先,CentOS 6.5默认自带的SSH版本可能较低,为了提高安全性并获取新特性,我们需要手动升级到SSH 7.7。这个过程涉及到几个...
【标题】:CentOS系统安装及SSH配置 在IT领域,CentOS是一款广泛使用的Linux发行版,因其稳定性、安全性以及与Red Hat Enterprise Linux的高度兼容性而备受青睐。本压缩包文件"CentOS系统安装及SSH配置.rar"包含了...
centOS 下SSH常用命令!