Chinaunix首页 | 论坛 | 博客
  • 博客访问: 227821
  • 博文数量: 47
  • 博客积分: 4000
  • 博客等级: 上校
  • 技术积分: 775
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-12 10:50
文章分类

全部博文(47)

文章存档

2011年(1)

2009年(4)

2008年(42)

我的朋友

分类: 网络与安全

2008-05-07 19:20:53

SSH Server Configuration:

Router(config)# hostname ssn  
ssn(config)# ip domain-name ssn.com  
ssn(config)# crypto key generate rsa  
The name for the keys will be: ssn.ssn.com  
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  
% Generating 1024 bit RSA keys ...[OK]  
00:02:25: %SSH-5-ENABLED: SSH 1.5 has been enabled  
ssn(config)# username sense1 secret bigXdogYlover  
ssn(config)# username sense2 secret BIGxDOGyLOVER  
ssn(config)# access-list 1 permit 172.16.3.10  
ssn(config)# access-list 1 permit 172.16.3.11  
ssn(config)# line vty 0 4  
ssn(config-line)# login local  
ssn(config-line)# access-class 1 in  
ssn(config-line)# transport input ssh  
ssn(config-line)# transport output ssh  
ssn(config-line)# end




Verifying Your SSH Configuration:  

ssn# show ip ssh  
SSH Enabled - version 1.5  
Authentication timeout: 120 secs; Authentication retries: 3



Viewing Your SSH Client Connections:  

ssn# show ssh  
Connection      Version Encryption      State                   Username  
 0              1.5     3DES            Session started         richard






SSH client syntax:

Router# ssh [-l username] [-c {des | 3des}] [-o numberofpasswdprompts #]  
  [-p port_#] {IP_Address | hostname} [command]



SSH Client Connection Example:  

ssn# ssh -l sense1 192.168.1.254  
Password: cisco  
ssn>
阅读(622) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~