sshc is a small SSH agent proxy that asks for confirmation (via
ssh-askpass) before forwarding SSH2 sign requests.
./autogen.sh
./configure
make
sudo make installStart as an agent-like background process and export shell variables:
eval "$(sshc -s)"Wrap an SSH destination (implicit ssh mode):
sshc host
sshc user@host -p 2222In implicit ssh mode, sshc runs ssh -o ForwardAgent=<proxy_socket_path> ... and keeps the child process
SSH_AUTH_SOCK set to the original upstream agent socket. This lets
the initial ssh authentication use your local agent directly while
forwarded agent use on the remote side goes through the sshc proxy.
Run an explicit command with the proxy socket in SSH_AUTH_SOCK:
sshc -- command arg1 arg2In -- cmd ... mode, sshc does not wrap arguments as ssh options
and instead sets the child SSH_AUTH_SOCK directly to the proxy
socket path.
Common options:
-a /path/to/socket: bind proxy socket at an explicit path.-D: stay in foreground.-sor-c: output sh/csh-style environment lines.-n name: label used in askpass confirmation prompts.