[Bug 2824] Add a configuration option / hook that will enable running a shell command / script right before connecting

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Tue Jan 30 02:15:34 AEDT 2018


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

--- Comment #5 from Doron Behar <doron.behar at gmail.com> ---
As I pointed out in my previous comment, I tried putting a
`ProxyCommand` that is calling a shell script that runs these two
commands (including the `TOKENS`) and I received the following error
(the same line repeats itself until I `^c`):

        Pseudo-terminal will not be allocated because stdin is not a
terminal.

This is the shell script I wrote:

```sh
#!/bin/sh

REMOTE_HOSTNAME="${1}"
REMOTE_PORT="${2}"
REMOTE_USERNAME="${3}"

/usr/bin/gpg-connect-agent UPDATESTARTUPTTY /bye
ssh -p "${REMOTE_PORT}" "${REMOTE_USERNAME}@${REMOTE_HOSTNAME}"
```

And this is how I configured `ProxyCommand` for that script:

ProxyCommand /home/doron/.ssh/proxycommand.sh %h %p %r

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list