ssh and rsync without password

ssh-keygen -t ed25519 -C "ubuntu-to-debian-rsync"
ssh-copy-id user@debian_server_ip

(Volitelné) Explicitní SSH klíč Pokud máš více klíčů:
rsync -avz -e "ssh -i ~/.ssh/id_ed25519" /data/ user@debian:/backup/data/

(Doporučeno) Omezení klíče jen na rsync
Na Debian serveru v authorized_keys:
command="rsync --server --daemon ." ssh-ed25519 AAAA...
nebo aspoň
from="IP_UBUNTU" ssh-ed25519 AAAA...

Rate this FAQ

0 (0 Votes)