Here's why I need it. One of our environments has to be PCI compliant
and shell access to any of the servers within that environment cannot be
direct from my workstation. I have to first connect to a special server
which is the only one allowed to ssh to any of the servers inside the
PCI environment. In linux and cygwin I can run something like this to
accomplish it in one command from my workstation...
ssh -t server1 ssh server2
I'd like to be able to do the same thing with the putty gui. I run
paegeant, cache my private key, and launch shell sessions to various
servers from the pageant tray icon. I can't find any "force pseudo
terminal" in the gui though.
TIA
<http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter4.html#config-ssh-pty>
That describes how to tell putty *not* to allocate a pseudo terminal. I
want the opposite. I want to *force* a pseudo terminal when it normally
would not. IOW an equivalent to OpenSSH's -t option.
Oops, wasn't reading carefully enough, sorry.
PuTTY (the GUI) nearly always requests a pty by default. I believe the
only circumstances in which it will not are:
1. if the option above (or the equivalent '-T' command-line option) is
used;
2. if the '-m' option (to pass a command from a file) is used;
3. if the 'Don't start a shell or command at all' (or '-N') option is
used;
4. if the '-nc' option is used.
To recap what you're trying to do:
>>> ssh -t server1 ssh server2
You don't describe what you're doing exactly, but in your case, I think
2 is the only one of these you're remotely likely to be doing. In that
case, specifying the '-t' option on the command-line would force PuTTY
to request a pseudo-terminal. (There is no equivalent in the GUI.)
<http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter3.html#using-cmdline-pty>
But if you're just setting the "Remote command" in the PuTTY GUI to
"ssh server2" and running PuTTY, I think it should request a pty from
server1.
Another way of doing this sort of thing is described at
<http://tartarus.org/~simon/putty-snapshots/htmldoc/Chapter3.html#using-cmdline-ncmode>
(although the '-nc' option is a bit broken in 0.60, so you'd probably
need to use a development snapshot).
Hi Chuck,
use plink. It is described in the link Jacob posted.
plink has the -t and -T options.
Regards
Josef