Skip to content
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

[Feature request] Allow passing the DISPLAY environment variable to ssh via command-line option #641

Open
ramilehti opened this issue Sep 18, 2024 · 0 comments

Comments

@ramilehti
Copy link

Sometimes it is useful that the ssh forwards the X11 connection. For example when you have to run sudo on the remote host using ssh-askpass. You shouldn't have to configure sudo to not ask a password and using ssh-askpass from within the rsync ssh connection has been a useful way of doing it.
Consider the following command-line for example
rsync -vaPr -e 'ssh -X' --rsync-path="SUDO_ASKPASS=/usr/bin/ssh-askpass sudo -A rsync" remote-host:/var/backups/ local_backup/
With this command line you can make a copy of files that require privileged access by authenticating through sudo.

I understand that by default forwarding the X11 connection is not useful or desirable, but you should have the option to do so.
For examples --pass-display or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant