Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenSSH: Bugs

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

 

 

OpenSSH bugs RSS feed   Index | Next | Previous | View Threaded


bugzilla-daemon at bugzilla

Feb 6, 2012, 1:02 PM

Post #1 of 1 (146 views)
Permalink
[Bug 1977] New: ProxyCommand seems to no execute shell commands

https://bugzilla.mindrot.org/show_bug.cgi?id=1977

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
AssignedTo: unassigned-bugs [at] mindrot
ReportedBy: calestyo [at] scientia


Hi.

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 *.exmaple.org
ProxyCommand ssh -W %h:%p gateway1.exmaple.org || ssh -W %h:%p
gateway2.exmaple.org

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

Is this intentional or a bug?

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

Thx,
Chris.

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

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

OpenSSH bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.