Skip to content

Instantly share code, notes, and snippets.

@kolay-v
Last active May 18, 2019 08:11
Show Gist options
  • Save kolay-v/d597bcea74b8abacec3f7c7dee7c0c0d to your computer and use it in GitHub Desktop.
Save kolay-v/d597bcea74b8abacec3f7c7dee7c0c0d to your computer and use it in GitHub Desktop.
Configure remote server
  1. Ssh private key auth
    1. generate private key
      ssh-keygen
    2. move to server
      1. on client copy cat ~/.ssh/id_rsa.pub
      2. paste in nano ~/.ssh/authorized_keys
    3. Disable password authentication
      go to nano /etc/ssh/sshd_config
      change PasswordAuthentication line to no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment