SSH Key-Based Authentication on RHEL 9
SSH Key-Based Authentication on RHEL 9
Generate key pair (client)
ssh-keygen -t ed25519 -C "[email protected]"
Copy public key to server
ssh-copy-id -i ~/.ssh/id_ed25519.pub [email protected]
Or manually:
cat ~/.ssh/id_ed25519.pub | ssh user@server \
"mkdir -p ~/.ssh && ch...