ssh-keygen -t ed25519
ssh-copy-id root@your.server.ip
type .ssh\id_ed25519.pub | ssh root@your.server.ip "cat >> .ssh/authorized_keys"
https://goteleport.com/blog/comparing-ssh-keys/
rsync -avnx -e 'ssh -p 2222' /source user@192.168.0.25:/destination
Remove the n
if the dry test is successfull.
Push or pull files from host to server.
Push
scp -r -v -P 9022 /mnt/oblivion user@remote-server-ip:/var/www/
Pull
scp -r -v -P 9022 user@remote-server-ip:/var/www/ /mnt/oblivion