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

--ssh-option=ControlPath=... does not create any filesystem objects #603

Open
YodaEmbedding opened this issue Oct 4, 2023 · 0 comments
Open

Comments

@YodaEmbedding
Copy link

YodaEmbedding commented Oct 4, 2023

$ et hostname --jumphost=hostname_in_the_middle --ssh-option="ControlMaster=auto" --ssh-option="ControlPath=$HOME/.ssh/control:%h:%p:%r"
$ ls -l ~/.ssh/control*

# Actual:
# Empty

# Expected:
srw-------  1 mulhaq users    0 2023-10-03 23:51:32 control:hostname:22:mulhaq
srw-------  1 mulhaq users    0 2023-10-03 23:51:32 control:hostname_in_the_middle:22:mulhaq

Looking at the logs, it looks like these configs are unsupported.

[INFO 2023-10-03 23:46:17,029 client-main ParseConfigFile.hpp:1400] unsupported config line:     ControlMaster auto, ignored
[INFO 2023-10-03 23:46:17,029 client-main ParseConfigFile.hpp:1400] unsupported config line:     ControlPath ~/.ssh/control:%h:%p:%r, ignored

rsync

Why is this feature useful? For rsync, usually.

#291 (comment) seems to indicate scripts/ssh-et may cover a related use case.

Another "workaround" is to just start another ssh connection before rsync, e.g.,

rsync_hostname() {
  ssh -J hostname_in_the_middle hostname -o "ControlMaster=auto" -o "ControlPath=$HOME/.ssh/control:%h:%p:%r" -o "ControlPersist=0" -t exit
  rsync "$@"
}
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