Still using these obsolete Linux commands? They might be popular from the olden days but perhaps it is time to look for alternatives.

  • lambalicious@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    17
    ·
    1 day ago

    rsync is cool but is nowhere a replacement for scp’s main use case. scp actually uses your SSH client settings file, whereas rsync doesn’t (it does have the opportunity to use a SSH command, which you then have to setup separately).

    • Brummbaer@pawb.social
      link
      fedilink
      arrow-up
      1
      ·
      12 hours ago

      I’m not sure I get what you mean. In every distro I used so far rsync did use ssh by default so it would honor everything I set in the ssh config.

      • lambalicious@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 hours ago

        Not everything however. For it to catch some options , for example SOCKS bridges, you have to use the SSH passthrough notation aka rsync -e 'ssh bridgename...' --rsync-options.... And ofc if you have to load a different SSH conffile, you have to use the while passthrough for that as well, there’s no rsync native option to load a SSH conffile: rsync -e 'ssh -F conffile ssh_options...' --rsync-options....