Skip to content

Instantly share code, notes, and snippets.

@jkatayama
Last active July 4, 2023 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkatayama/b823d78e86fd3bb8fc461c442193c969 to your computer and use it in GitHub Desktop.
Save jkatayama/b823d78e86fd3bb8fc461c442193c969 to your computer and use it in GitHub Desktop.
ssh

SSH

  • id_rsa is a privateky
  • id_rsa.pub is a public key
  • authorized_keys is a list of public keys that are allowed to connect to the server

When to renew ssh keys?

  • When you have a new computer

how to read Config config file

for microservices

#Host domain name
#  Hostname xx.xx.xx.xx
#  User ubuntu
#  IdentityFile ~/.ssh/<domain>.pem
 

 # knownhosts
 ## what is knownhost file for?
    - knownhost file is a list of servers that you have connected to before\
    - it is used to verify the server that you are connecting to is the same server that you have connected to before
    - if the server is not the same, then you will get a warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment