Jos van Kan wrote:
David C. Rankin schreef:
rsync -av -e 'ssh -p 5129' yoursite.com:~/tmp/somefile.doc tmp/
Works like a champ.
And scp insists on a capital P for some reason:
scp -P 5129 LOCAL_FILE REMOTE_FILE
That's why I prefer to add this to ~/.ssh/config if one connects regularly to the remote system (or even to /etc/ssh/ssh_config, if more users on that system do that): Host yoursite.com Port 5129 You can/should also add "Compression yes" there, if the connection goes via Internet. And one can make nicknames for connections by specifying the nickname in the Host clause and adding a line with "HostName yoursite.com". If the remote system is on a dialup line with changing IP numbers and dynamic DNS, add "CheckHostIP no". Another important configuration clause is "User uid" if your uids differ from local to remote system, but that's one for the personal config file, not one for the system-wide one. Configurations are additive, i.e., one can have some in a wildcard section for a whole domain, some system-wide for a specific system, and some in the personal config file, like the User clause; they are all merged together. We have dozens of such configurations in our ssh config files... ;-) Afterwards, all ssh and scp connections (including those initiated by rsync) use that configuration, no need to specify the port with every call. Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org