CISCO SSH配置模版

SSH Server Configuration:dom

Router(config)# hostname ssn  ssh

ssn(config)# ip domain-name ssn.com  ide

ssn(config)# crypto key generate rsa  3d

The name for the keys will be: ssn.ssn.com  ip

Choose the size of the key modulus in the range of 360 to 2048 for your  ci

  General Purpose Keys. Choosing a key modulus greater than 512 may take  input

  a few minutes.  it

How many bits in the modulus [512]: 1024  io

% Generating 1024 bit RSA keys ...[OK]  class

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>

相關文章
相關標籤/搜索