SSH ?
SSH,
Solutions
+ ssh-copy-id(Recommended)Recommended
# 1. Ed25519 ssh-keygen -t ed25519 -C "your@email.com" #, passphrase # 2. Copy ssh-copy-id user@server.example.com # Copy # 3. ssh user@server.example.com #,
ssh-copy-id ~/.ssh/authorized_keys,.
: Linux/macOS,
Copy( ssh-copy-id )
# 1. () ssh-keygen -t ed25519 -C "your@email.com" # 2. cat ~/.ssh/id_ed25519.pub # 3. ssh user@server mkdir -p ~/.ssh chmod 700 ~/.ssh echo ' ' >> ~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys exit # 4. ssh user@server
and, authorized_keys., SSH.
: Windows ssh-copy-id command
ssh-agent passphrase
# 1. ssh-agent eval $(ssh-agent -s) # 2. ( passphrase) ssh-add ~/.ssh/id_ed25519 # 3. ~/.ssh/config Host * AddKeysToAgent yes IdentityFile ~/.ssh/id_ed25519
passphrase,. ssh-agent,.
: passphrase,
600(chmod 600 ~/.ssh/id_ed25519), SSH
Copy, Copy(.pub )
(PasswordAuthentication no)