Just curious, what is the default remote shell used by rsync when you're not using it in daemon mode? According to the man page it can be run via rsh or ssh. However nowhere in the man page does it specify how to set which one to use. So, when running it it prompts me for a password, but it doesn't seem to indicate which remote shell is being used. I know this is probably a dummy question, but I could really use some clarification. Thanks!
The default remote shell for rsync
rsync
Related Topic
- Ssh – Is it possible to use rsync over sftp (without an ssh shell)
- Archive mode in rsync
- Ssh – Rsync delta copy not working for virtual disk
- Disable reverse lookup in rsync daemon
- Linux – Configure SElinux to allow rsync from a remote machine
- Which is more efficient with rsync: rsh/ssh or modules
- Vps – rsync/scp extremely slow transfer rate (<30kB/s) over fast connection
Best Answer
It's going to default to whatever shell you have set as default on the remote side. if your rsync line looks like this:
... Then it's going to be remoteuser's default shell. Easy way to check is to
cat /etc/passwd
EDIT: I answered what you asked, but not what you meant. Simple rule of thumb: If you're using two colons, you're probably using rsh. If you're using one colon, it's ssh.