Created
March 5, 2019 16:27
-
-
Save dcasati/f3afead5754f4e440f766e755238e9c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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