SSH配置演示(路由器2691):
Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 172.28.12.205 255.255.248.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#username admin password 123456
R1(config)#ip domain-name arthonyt.com
R1(config)#crypto key generate rsa
How many bits in the modulus [512]: 1024
R1(config)#ip ssh version 2
R1(config)#line vty 0 4
R1(config-line)#transport input ssh (transport input ssh telnet)
R1(config-line)#^Z
________________________________________
R2#ssh -l admin 172.28.12.205
________________________________________
断开某个vtp连接:
R1#show user
130 vty 0 idle 00:00:03 172.28.12.206
R1#clear line vty 0 (R1#clear line 130)
扩展阅读:《路由器TELNET登录演示》SourceByrd's Weblog-https://note.t4x.org/route/ssh-login-demo/ SourceByrd's Weblog-https://note.t4x.org/route/ssh-login-demo/
Trackbacks