Skip to main content

Enabling SSH on a Cisco Router for Secure Remote Login

  1. Ensure you have a hostname configured on your router:
    Router#conf t 
  2. Router(config)#hostname router23
  3. You must also configure a domain name:
    Router(config)#ip domain-name jpt
  4. Generate an RSA keypair with a key length of 1024 bits using the following sequence of commands:
    router(config)#
    router(config)#crypto key generate rsa
  5. The name for the keys will be: routername.soundtraining.class (where routername is your router's hostname)
  6. 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.
  7. How many bits in the modulus [512]: 1024% Generating 1024 bit RSA keys ...[OK]
  8. Create a username in the router’s local database for SSH authentication using the following command (for the purpose of the exercise, use the username “user15”):
    router01(config)#username user15 privilege 15 secret p@ssword
  9. Enable login authentication against the local database when logging in to a terminal line with the following commands:
    router01(config)#line vty 0 15
  10. router01(config-line)#login local
  11. router01(config-line)#exec-timeout 0 0
  12. router01(config-line)#logging synchronous
  13.  router01(config-line)#transport input ssh

Comments

Popular posts from this blog

Cisco SG300 CLI Commands

Cisco SG300 CLI Commands Other parts were obtained using the CLI PDF provided by Cisco Remove a Trunk and switch to access config t int gi44 switchport trunk allowed vlan remove 2 switchport mode access switchport access vlan 2 or config t int gi44 switchport mode general switchport general allowed vlan remove 2 switchport mode access switchport access vlan 2 Change CDP Device ID Format to Hostname opposed to default MAC address s-sg300#sh cdp Global CDP information:         CDP is globally enabled         CDP log duplex mismatch is globally enabled         CDP log voice VLAN mismatch is globally enabled         CDP log native VLAN mismatch is globally enabled         Mandatory TLVs validation is disabled         Sending CDPv2 advertisements is enabled         Sending Appliance TLV is enabled       ...

Backup Your Entire Linux System Using Rsync

First, insert your backup medium (USB thumb drive or External hard disk). Then find the drive letter using ‘fdisk -l’ command. In my case, my Pen drive id is /dev/sdb1 . Mount your drive to any location of your choice. I am going to mount it under /mnt . $ sudo mount /dev/sdb1 /mnt To backup the entire system, all you have to do is open your Terminal and run the following command as root user: $ sudo rsync -aAXv / --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /mnt This command will backup the entire root ( / ) directory, excluding /dev, /proc, /sys, /tmp, /run, /mnt, /media, /lost+found directories, and save the data in /mnt folder. Let us break down the above command and see what each argument does. rsync – A fast, versatile, local and remote file-copying utility -aAXv – The files are transferred in “archive” mode, which ensures that symbo...

developer resource

  Developer Resources Your journey to success as a confident developer requires hard work, time – and if you're wise, lots of help and guidance from people who have been in your shoes (something we’re proud to be able to offer here at ZTM). It also doesn't hurt to stand on the shoulders of others and leverage the wealth of incredible free resources out there. Andrei and  our instructors  have put together this collection of their top free developer resources to help you at any stage of your programming journey. Be first to get new ZTM updates, content and resources SUBSCRIBE No spam, ever. Unsubscribe anytime. Cheat Sheets Python Cheat Sheet  Cheat Sheets Official ZTM Python Cheat Sheet to help Python programmers of all levels learn and remember common Python syntax. zerotomastery.io JavaScript Cheat Sheet  Cheat Sheets Official ZTM JavaScript Cheat Sheet to help all web developers learn and remember JavaScript concept ... zerotomastery.io Nmap Cheat Sheet ...