Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Working within a framework commands are issued to remote machines using ssh. Recently the -t option was added to the command in order to get it to work properly with sudo. However this option will be enabled for all remote commands as well.

Before submitting this change into the code base I was wondering if there are any situations in which having the -t option will cause issues with the usage of ssh?

share|improve this question

The manpage of ssh on Debian Wheezy gives, among other things:

If no pseudo-tty has been allocated, the session is transparent and can be used to reliably transfer binary data. On most systems, setting the escape character to “none” will also make the session transparent even if a tty is used.

That is, if you want to transfer data (cat file | ssh host executable_that_reads_input), you likely want to avoid -t, unless your data is plain-text only.

share|improve this answer
    
scp is used to transfer binary data to the machine before attempting to read it, so this shouldn't be an issue for us, +1 for the good response though. – EEP Dec 4 '12 at 21:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .