21 May 2013 dmarti   » (Master)

What does ssh -t do?

Using the -t option allocates a pseudo-terminal for ssh. This comes in handy when you want to "double ssh".

Let's say you can reach the host bastion and bastion can reach internal but you can't reach internal. No problem, right? You can log into internal like this:

  ssh bastion ssh internal

No joy: "Pseudo-terminal will not be allocated because stdin is not a terminal."

Now try that again with -t...

  ssh -t bastion ssh internal

And it works.

Syndicated 2013-05-21 03:01:07 from Don Marti

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!