Skip to content

Instantly share code, notes, and snippets.

@piyoki
Last active November 11, 2022 04:24
Show Gist options
  • Save piyoki/be2230f5b4169a4e3fd57b6e85e465b4 to your computer and use it in GitHub Desktop.
Save piyoki/be2230f5b4169a4e3fd57b6e85e465b4 to your computer and use it in GitHub Desktop.

RouterOS

SSH Configuration

$ ssh admin@router
[user@router] > /file print file=mykey;
[user@router] > /file set mykey contents="copy and paste contents of ~/.ssh/id_rsa.pub here";
[user@router] > /user ssh-keys import public-key-file=mykey.txt
[user@router] > /ip ssh set always-allow-password-login=yes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment