Skip to content

Instantly share code, notes, and snippets.

@davidbarkhuizen
Last active April 17, 2022 04:31
Show Gist options
  • Save davidbarkhuizen/d9bf1b616cfd69c38f003080098443c3 to your computer and use it in GitHub Desktop.
Save davidbarkhuizen/d9bf1b616cfd69c38f003080098443c3 to your computer and use it in GitHub Desktop.
linux ssh client config
$ mkdir -p ~/.ssh && chmod 700 ~/.ssh  
$ touch ~/.ssh/config  
$ chmod 600 ~/.ssh/config

sample ssh file

Host host_alias
    HostName actual.host.domain
    User username
    Port port
    IdentityFile ~/.ssh/private.key

key file priviliges

$ chmod 600 ~/.ssh/id_rsa  
$ chmod 600 ~/.ssh/id_rsa.pub  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment