[Bug 3142] ProxyCommand should be interpreted by a fixed shell like /bin/sh .
    bugzilla-daemon at mindrot.org 
    bugzilla-daemon at mindrot.org
       
    Tue Mar 31 12:20:48 AEDT 2020
    
    
  
https://bugzilla.mindrot.org/show_bug.cgi?id=3142
--- Comment #5 from Tetsuo Handa <penguin-kernel at I-love.SAKURA.ne.jp> ---
But my program (which is called as Apache CGI) does allow setting
$SHELL.
  sudo -u user /usr/bin/ssh -nT -i /path/to/key -o 'ProxyCommand nc -x
proxy_host:proxy_port %h %p' target_user at target_host command
which I chose
  sudo -u user SHELL=/bin/bash /usr/bin/ssh -nT -i /path/to/key -o
'ProxyCommand nc -x proxy_host:proxy_port %h %p'
target_user at target_host command
as a workaround for this problem.
-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
    
    
More information about the openssh-bugs
mailing list