Skip to content

Instantly share code, notes, and snippets.

@dcasati
Created March 5, 2019 16:27
Show Gist options
  • Save dcasati/f3afead5754f4e440f766e755238e9c8 to your computer and use it in GitHub Desktop.
Save dcasati/f3afead5754f4e440f766e755238e9c8 to your computer and use it in GitHub Desktop.
1. Create an user on the cisco device
username dcasati privilege 15 secret MYbiGsecrRETThatOnlyIknoW
2. Convert your pub key to less than 254 characters (otherwise it will not work)
$ fold -b -w 72 ~/.ssh/id_rsa.pub
3. Create the key
conf t
ip ssh pubkey-chain
username MYUSER
key-string
<< paste your multi-line public key here >>
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment