1

On Linux the ssh command has a -t option whose man page reads:

Force pseudo-tty allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services. Multiple -t options force tty allocate, even if ssh has no local tty.

I would like to use this same option with PuTTY on Windows. In particular, I can see that PuTTY has a bunch of options under:

Category -> Connection -> SSH -> TTY

and suspect it might be possible to achieve the same behavior via some of the (NUMEROUS!) settings found on this screen. Anyone know how to configure the following command:

ssh -t USER,PROJECT@shell.sourceforge.net create

Thanks!

2 Answers2

1

I don't think there would be any point for this option in PuTTY.

Normally, ssh on UNIX creates a TTY on the server side if and only if there is a TTY on the client side. Since you may use ssh both in a terminal, or from a script (where there's no terminal attached), this option makes sense on UNIX. But PuTTY only works with a terminal, so there's no point in forcing the TTY allocation on the server side, as it should always happen even without forcing.

0

I found this because I was looking for a way to set TERM when using PuTTY (from Windows) to login via SSH to a linux machine. PuTTY has the ability to set the TERM in the connection to the remote server:

PuTTY Configuration -> Connection -> Data -> The field "Terminal-type string"

For my case, it was set to "xterm" and for the most part, worked okay.

However with Ubuntu (24.04) running the command line program "aptitude" looked awful where it was trying to display vertical and horizontal lines (boxes). So I found that setting "Terminal-type string" to "putty" (note all lower case) worked so much better for "aptitude" (and I suspect any other line drawing utilities)

Roger
  • 1