Possible Duplicate:
non-interactive ssh sudo… prompts for the password in plain text
Here's the current workflow I have (already have some settings in my .ssh/config):
scribu@localhost$ ssh core
scribu@core$ sudo ssh app-01
[sudo] password for scribu:
root@app-01$
Is there any way I could shorten that to a single command, similar to this?
scribu@localhost$ ssh app-01
[sudo] password for scribu:
root@app-01$
I tried the ProxyCommand method, suggested here:
Host app-01
ProxyCommand ssh core "sudo /bin/nc -w1 %h"
but it doesn't work because it won't let me input the password for sudo.