Skip to content

Instantly share code, notes, and snippets.

@stefan-wegener
Last active September 10, 2019 13:34
Show Gist options
  • Select an option

  • Save stefan-wegener/acdc67796ab20d5d2d24f6152edfded2 to your computer and use it in GitHub Desktop.

Select an option

Save stefan-wegener/acdc67796ab20d5d2d24f6152edfded2 to your computer and use it in GitHub Desktop.
SSH

Create key

ssh-keygen -b 4096 -t rsa -C <comment> -f <keyfile-name>

Config

Create file ~/.ssh/config

Host 10.8.0.1
        Hostname 10.8.0.1
        IdentityFile /home/pi/.ssh/keyname
        User root

Connect - ignoring local public keys

ssh -o PubkeyAuthentication=no user@server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment