Cấu hình trên router:
Code:
vnpro#sh running-config Building configuration... Current configuration : 680 bytes ! version 12.4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname vnpro ! ! ! enable secret 5 $1$mERr$4dpRATIgxQacPVK0CfNV4/ ! ! ! ! ! aaa new-model ! ! ! ! ! ! ! ! username cisco password 0 1234 ! ! ! ! ! ip ssh version 1 ip ssh authentication-retries 5 ip ssh time-out 60 ip domain-name www.vnpro.org ! ! ! ! ! ! interface FastEthernet0/0 ip address 10.1.1.1 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Vlan1 no ip address shutdown ! ip classless ! ! ! ! ! ! ! line con 0 line vty 0 4 transport input ssh ! ! ! end
Thực hiện SSH trên PC:
Câu lệnh:
PC>ssh -l <username> <ip target>
username: cisco
ip username : 10.1.1.1
Thực hiện : show crypto key mypubkey rsa