From: Chris Andrews Date: 2008-06-21T03:25:03+09:00 Subject: Re: Net::SSH Force tty 2008/6/20 Shawn Jan : > Well, I want to use Net::SSH with ruby to excecute some commands via > ssh, but I need the to force the tty. IF I was using a shell, I could > just type ssh -t, so I was wondering if there was a way to do this with > the ssh ruby library. It sounds like you need to send a pty request - take a look at: http://net-ssh.rubyforge.org/ssh/v2/api/index.html and search for "request_pty" (assuming you're on the current v2 Net::SSH). You might also want to look at Capistrano, for an example of how this is used - it has a "force pty" option, so you should be able to see what that does. Chris.