Thursday, June 21, 2012

SSH configuration

  1. Specify the Host name.
    Router(config)#hostname <host name>
    
  2. Define a default domain name.
    Router(config)#ip domain-name <Domain Name>
    
  3. Generate RSA key pairs.
    Router(config)#crypto key generate rsa
    
  4. Configure SSH-RSA keys for user and server authentication.
    Router(config)#ip ssh pubkey-chain
    
  5. Configure the SSH username.
    Router(conf-ssh-pubkey)#username <user name>
    
  6. Specify the RSA public key of the remote peer.
    Router(conf-ssh-pubkey-user)#key-string
    
  7. Specify the SSH key type and version. (optional)
    Router(conf-ssh-pubkey-data)#key-hash ssh-rsa <key ID>
    
  8. Exit the current mode and return to privileged EXEC mode.
    Router(conf-ssh-pubkey-data)#end
    

No comments:

Post a Comment