This video demonstrates how to ssh to cisco devices without password using ssh key pair in linux.
Instead of password it uses,manually generated 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
To generate sshkey pair, command in linux is
ssh-keygen -b 2048 -t rsa
#CiscoRSAkeySSH
#CiscoSSHwithoutPassword
#CIscoIOSRSAKey
Instead of password it uses,manually generated 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
To generate sshkey pair, command in linux is
ssh-keygen -b 2048 -t rsa
#CiscoRSAkeySSH
#CiscoSSHwithoutPassword
#CIscoIOSRSAKey
- Category
- Routers and Switches
Be the first to comment