Upload & Sync directories/files (without password prompt)
SSH Key
ssh-keygen
Copy SSH Key to Remote Server
ssh-copy-id -i ~/.ssh/id_rsa.pub remoteUser123@remote-host-or-ip
Sync Files & Directories
rsync -avz -e ssh /var/www/backup remoteUser123@remote-host-or-ip:/var/www/backup
Neuen Kommentar schreiben