Mailing List Archive

[Bug 1977] New: ProxyCommand seems to no execute shell commands

Bug #: 1977
Summary: ProxyCommand seems to no execute shell commands
Classification: Unclassified
Product: Portable OpenSSH
Version: 5.9p1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: ssh


The manpage says to ProxyCommand:
>The command string extends to the end of the line,
>and is executed with the user's shell.

So I'd have assumed that the following works:
Host *
ProxyCommand ssh -W %h:%p || ssh -W %h:%p

But it doesn't, even not in modifications like:
ProxyCommand { ssh -W %h:%p ; } || { ssh
-W %h:%p ; }
or so.

Is this intentional or a bug?

What works however is explicitly invoking another shell:
ProxyCommand sh -c "ssh -W %h:%p || ssh -W
but this shouldn't be necessary, should it?


btw: I guess my intention is clear, if the gateway1 fails, use
gateway2. Is there a better way for doing this?

Configure bugmail:
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
openssh-bugs mailing list