Add you SSH Public Key to a Cisco 2960 Switch

Windows WSL linux Cisco https://nsrc.org/workshops/2016/renu-nsrc-cns/raw-attachment/wiki/Agenda/Using-SSH-public-key-authentication-with-Cisco.htm

Login

Blog History

Windows WSL linux

cd /mnt/c/Users/username/.ssh
fold -b -w 72 ~/.ssh/id_rsa.pub

# sample output

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIv/op3vgavpEV2gz7hvBBlwFC+FvRgIW1
PIIGYUTZOypj3vqp9XiSPkcU7OW+yZdo6iHoOkb/iM1P/w3FKXSOlmxdTF5KFqIev5ZsKC9z
YgEa2IdC2b3UZZbtsiCZ0s/kIniFWCS2blYedECC2oy+hXzOKH1agIYq5Y1msfQJHd2BANpS
5DAaLjK7KNzSR4HmeuDt1YNolmJWu+nC5qYA5Ynr4crGbY8zdlSpHt82ubLEwykRQNN+wjZR
pPe/CYOZVUHHVl82rYcAgz+bQC/jKgpeXaY5aGs0VFI902ZB1/75N1+6XgEhXTfQ7SjK9jyW
5wScPrPS2gqp7xsTKeFT ja@TGN-WS-99

Cisco


ip ssh pubkey-chain
   username james
      key-string
          << paste your multi-line public key produced with the fold command here >>
      exit

https://nsrc.org/workshops/2016/renu-nsrc-cns/raw-attachment/wiki/Agenda/Using-SSH-public-key-authentication-with-Cisco.htm

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.