I would like to be able to use my local credentials in a remote session without Agent forwarding if possible. The reasons:
- Agent forwarding has security issues (port accessible to remote root users)
- I am in a terminal session and ssh-askpass requires X-windows
- I need to be able to execute a command on a remote host (HOST_A) that uses SSH transport to another host (HOST_B)
- I don't want to grant HOST_A access to HOST_B
It seems that ProxyCommand effectively has this ability (using credentials without Agent forwarding), but it also seems it is only to be used for jumping to other hosts, whereas I'd like the feature in a normal shell on HOST_A (or, failing that, a single command on HOST_A).
I guess that ProxyCommand is doing something cunning in the background that I can not emulate via other SSH options, but would appreciate any advice about how I might be able to achieve this outcome.