01 SSH Cisco Routers / Switches without password | IOS SSH using RSA key pair Authentication

111 Views
Published
Part 2 : Video url
https://www.youtube.com/watch?v=OT7LsS4vtBA
This video demonstrates how to ssh to cisco devices without password.
Instead of password it uses,rsa key pair in the local machine for authentication

commands are
ls ~/.ssh/
cat ~/.ssh/id_rsa.pub

conf t
ip ssh pubkey-chain
username nsrc
key-string
exit Failed to decode the Key Value
The maximum line length is 254 in cisco, but we can wrap smaller than this so that it fits on a terminal line.

fold -b -w 70 ~/.ssh/id_rsa.pub

ssh-keygen -l -f ~/.ssh/id_rsa.pub
ssh-keygen -f my_cisco_rsa.pub -l
username admin2 privilege 15
#CiscoRSAkeySSH
#CiscoSSHwithoutPassword
#CIscoIOSRSAKey
Category
Routers and Switches
Be the first to comment