300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > ensp配置ssh后无法远程连接问题

ensp配置ssh后无法远程连接问题

时间:2023-03-09 04:34:01

相关推荐

ensp配置ssh后无法远程连接问题

报错:Info: The connection was closed by the remote host

在使用router配置ssh登录后,我通过Router1 ssh 登录Router2,出现如上报错信息。

使用旁边的AR3260设备则可以ssh登录。

以下为AR1,AR2的配置。

AR2(被远程登录的对象):

[Huawei]sysname R2[R2]user-interface vty 0 4[R2-ui-vty0-4]authentication-mode aaa[R2-ui-vty0-4]protocol inbound ssh [R2-ui-vty0-4]q[R2]aaa[R2-aaa]local-user user1 password cipher 123[R2-aaa]local-user user1 privilege level 3[R2-aaa]local-user user1 service-type ssh[R2-aaa]q[R2]ssh user user1 authentication-type password[R2]stelnet server enable [R2]rsa local-key-pair create[R2]int g0/0/0[R2-GigabitEthernet0/0/0]ip address 1.1.1.1 24

AR1(作为要远程登录的路由器):

[Huawei]sysname R1[R1]int g0/0/0[R1-GigabitEthernet0/0/0]ip address 1.1.1.2 24[R1-GigabitEthernet0/0/0]qu[R1]ping 1.1.1.1PING 1.1.1.1: 56 data bytes, press CTRL_C to breakReply from 1.1.1.1: bytes=56 Sequence=1 ttl=255 time=150 msReply from 1.1.1.1: bytes=56 Sequence=2 ttl=255 time=30 msReply from 1.1.1.1: bytes=56 Sequence=3 ttl=255 time=20 ms[R1]ssh client first-time enable [R1]stelnet 1.1.1.1Please input the username:user1Trying 1.1.1.1 ...Press CTRL+K to abortConnected to 1.1.1.1 ...The server is not authenticated. Continue to access it? (y/n)[n]:yJul 25 15:09:39-08:00 R1 %%01SSH/4/CONTINUE_KEYEXCHANGE(l)[2]:The server had not been authenticated in the process of exchanging keys. When deciding whether to continue, the user chose Y. [R1]Save the server's public key? (y/n)[n]:yThe server's public key will be saved with the name 1.1.1.1. Please wait...Jul 25 15:09:40-08:00 R1 %%01SSH/4/SAVE_PUBLICKEY(l)[3]:When deciding whether to save the server's public key 1.1.1.1, the user chose Y. [R1]Enter password:<R2>

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。