1
TheCure 2014-11-18 13:57:18 +08:00
删除~/.ssh/known_hosts
|
2
Jays 2014-11-18 14:01:34 +08:00 via Android
重来一次 , 我的到货后一天重刷了4次
|
4
jemyzhang 2014-11-18 14:33:14 +08:00
密码和你web界面的密码是一样的
|
6
hellov22ex 2014-11-18 15:18:04 +08:00
一旦设定了密码后telnet自动失效,只能ssh链接上去,我用的是Xshell4链接的,账号密码为你web页面的登陆账号密码,即root和密码
|
7
ooxxcc 2014-11-18 15:23:09 +08:00
把ssh的提示贴出来
我猜是因为主机公钥改变导致客户端拒绝连接 |
9
nonozone OP @ooxxcc
root@debian ~# ssh [email protected] [email protected]'s password: Connection to 192.168.10.1 closed. |
10
nonozone OP 如果用putty打开的时候,输入账号root之后,提示输入密码,输完,窗口就自动关闭了。
|
13
MerlinYang 2014-11-19 09:12:21 +08:00 via Android
putty能记录所有返回信息,看下
|
14
nonozone OP @MerlinYang 记录在哪里?哪个文件?反正输入密码,putty直接 关闭了。
|
15
nonozone OP @ooxxcc 这样
root@debian:~# ssh -4Cv [email protected] OpenSSH_6.0p1 Debian-4+deb7u2, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to 192.168.10.1 [192.168.10.1] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /root/.ssh/id_rsa type -1 debug1: identity file /root/.ssh/id_rsa-cert type -1 debug1: identity file /root/.ssh/id_dsa type -1 debug1: identity file /root/.ssh/id_dsa-cert type -1 debug1: identity file /root/.ssh/id_ecdsa type -1 debug1: identity file /root/.ssh/id_ecdsa-cert type -1 debug1: Remote protocol version 2.0, remote software version dropbear_2014.65 debug1: no match: dropbear_2014.65 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2 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: sending SSH2_MSG_KEXDH_INIT debug1: expecting SSH2_MSG_KEXDH_REPLY debug1: Server host key: RSA c9:14:9c:42:23:1f:0b:99:39:58:80:38:c2:5c:b2:85 debug1: Host '192.168.10.1' is known and matches the RSA host key. debug1: Found key in /root/.ssh/known_hosts:4 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: Roaming not allowed by server 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/id_rsa debug1: Trying private key: /root/.ssh/id_dsa debug1: Trying private key: /root/.ssh/id_ecdsa debug1: Next authentication method: password [email protected]'s password: debug1: Authentication succeeded (password). Authenticated to 192.168.10.1 ([192.168.10.1]:22). debug1: channel 0: new [client-session] debug1: Entering interactive session. debug1: Sending environment. debug1: Sending env LANG = en_US.UTF-8 debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: channel 0: free: client-session, nchannels 1 Connection to 192.168.10.1 closed. Transferred: sent 2280, received 1176 bytes, in 0.0 seconds Bytes per second: sent 222701.2, received 114866.9 debug1: Exit status 1 |
16
ooxxcc 2014-11-19 10:08:12 +08:00
ssh过程是正常的,不过路由器上的shell坏了似乎……其他不清楚了
|
18
aboutboy 2017-04-05 17:46:50 +08:00
这个问题我这两天刚接触 openwrt 也遇到了。刷机后如果遇到 ssh 输入正确的密码却无法登录的情况,可以重启一下路由器,再 ssh 就可以了。具体原因我还没找到。
|
19
pennguo 2017-07-26 03:38:18 +08:00
网页登录用户名和密码都设置 root,路由器断电,重启后 SSH 就可以登陆啦。(记得用网页登录用户名和密码)
|