-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ssh and rsync incompatibility #18
Comments
Temporary workaround exclusively for rsync: Put the following in #!/bin/sh
host="$1"
shift
sga-ssh "$host" -- "$@" Then run: sudo chmod +x /usr/local/bin/sga-ssh-rsync
sed 's#RSYNC_RSH=sga-ssh$#RSYNC_RSH=/usr/local/bin/sga-ssh-rsync#' /usr/local/bin/sga-env.sh | sudo tee /usr/local/bin/sga-env.sh > /dev/null I'm not using the |
I believe I have the same issue. Trying to run
then a hang on Linux Mint 19. On Ubuntu 16.04.6, I get the popup for allowing the agent use, but then it fails with
My local machine is running macOS and all are using a zsh shell. I get the same result as @Zenexer with the @Zenexer's workaround also worked for me (thank you!) |
Don't forget to source the file after changing it. |
sga-ssh's command line argument processing isn't quite compatible with ssh's, and this breaks rsync.
Take, for example:
export RSYNC_RSH=sga-ssh rsync /file.ext some-server:/file.ext
This will result in an invocation of sga-ssh similar to the following:
sga-ssh some-server rsync --server -e.MisqZ . /file.ext
sga-ssh attempts to interpret the --server and -e arguments as arguments to itself, rather than part of the command to be executed on the target.
There's a pretty easy test to confirm this:
The text was updated successfully, but these errors were encountered: