SSH là dịch vụ tương tự như dịch vụ Telnet nhưng SSH ngày càng được sử dụng nhiều hơn bởi nó bảo mật tốt hơn Telnet. Với Telnet user và pass đăng nhập vào router của bạn không được mã hóa với SSH điều này đã được khắc phục


!--- Cấu hình hostname, domain-name, enable password cho Router
Router(config)# hostname R1
R1(config)# ip domain-name quantrimangcna.net
R1(config)#enable password cisco
!--- Tạo key để mã hóa gói tin SSH
R1(config)# crypto key generate rsa
The name for the keys will be: R1.quantrimangcna.net
Choose the size of the key modulus in the range of 360 to 2048 for your General Purpose Keys. Choosing a key modulus greater than 512 may take a few minutes.
How many bits in the modulus [512]: 1024
!--- Enable SSH version 2
R1(config)# ip ssh version 2
!--- Tạo Username và Password để đăng nhập SSH
R1(config)# username admin pass admin
!--- Cấu hình line vty cho kết nối ssh và login bằng username/password đã tạo trên
R1(config)# line vty 0 4
R1(config-line)# transport input ssh
R1(config-line)# login local
R1(config-line)# end
Comments
Post a Comment