I always used to use the following command when copying from a server:
rsync --progress -avze ssh user@host:/path/to/files ./here. However, a friend of mind showed me that I can simply do rsync --progress -avz user@host:/path/to/files ./here. So the question is, if you do not need -e ssh why is it there anyways?
|
|
|||
|
|
|
You don't need -e ssh to use ssh. In fact, if you specify the target as user@host:/path/to/files, you're using ssh by default. It's left in a) for compatibility reasons and b) fringe cases where you might have a combination of rsyncd and ssh hosts. |
|||||
|
|
Any time you need additional options to the ssh command outside of the user and host, then you need the -e flag. Perhaps the server you're connecting to has ssh listening on port 2222.
An alternative to getting around this, there are 2 files you can use. /etc/ssh/ssh_config or ~/.ssh/config The config file uses the same format as ssh_config. It's just able to be configured on a per user basis! |
|||
|
|
|
You would also need |
||||
|
It depends on what was specified for the |
|||
|
|
