Affichage des articles dont le libellé est ssh. Afficher tous les articles
Affichage des articles dont le libellé est ssh. Afficher tous les articles

lundi 16 janvier 2017

rsync with non standard ssh port

If your destination ssh daemon on the remote server runs on a non-standard port, and all the port related options to rsync only change settings if you’re running the rsync-daemon. Here is a solution to use rsync simply by specifying a different port
just Pass the port parameter to ssh with the -e option:
# rsync -avz -e "ssh -p $portNumber" user@remoteip:/path/to/files/ /local/path/

vendredi 15 janvier 2016

Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id

Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id


first generate the keypair

ssh-keygen

then
cat ~/.ssh/id_rsa.pub | ssh user@remotemachine "cat >> ~/.ssh/authorized_keys"