3300.me

ssh

last update: 2020/12/19
ssh-keygen
// Create keys into ~/.ssh/
// No need passcode set

cat ~/.ssh/id_rsa.pub
// Paste code into server's ~/.ssh/authorized_keys or admin
vi ~/.ssh/config

Host [host]
   User git
   Hostname [host]
   IdentityFile ~/.ssh/id_rsa
   Port [port]
   ForwardAgent yes
   AddKeysToAgent yes
   UseKeychain yes