rsyncsh.txt 1.3 KB

123456789101112131415161718192021222324252627
  1. rsyncsh
  2. Copyright (C) 2001 by Martin Pool
  3. This is a quick hack to build an interactive shell around rsync, the
  4. same way we have the ftp, lftp and ncftp programs for the FTP
  5. protocol. The key application for this is connecting to a public
  6. rsync server, such as rsync.kernel.org, change down through and list
  7. directories, and finally pull down the file you want.
  8. rsync is somewhat ill-at-ease as an interactive operation, since every
  9. network connection is used to carry out exactly one operation. rsync
  10. kind of "forks across the network" passing the options and filenames
  11. to operate upon, and the connection is closed when the transfer is
  12. complete. (This might be fixed in the future, either by adapting the
  13. current protocol to allow chained operations over a single socket, or
  14. by writing a new protocol that better supports interactive use.)
  15. So, rsyncsh runs a new rsync command and opens a new socket for every
  16. (network-based) command you type.
  17. This has two consequences. Firstly, there is more command latency
  18. than is really desirable. More seriously, if the connection cannot be
  19. done automatically, because for example it uses SSH with a password,
  20. then you will need to enter the password every time. We might even
  21. fix this in the future, though, by having a way to automatically feed
  22. the password to SSH if it's entered once.