Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Re: SSH and pyseudo tty

Subject: Re: SSH and pyseudo tty
Date: Tue, 30 Oct 2007 19:42:16 +0000
To ask for the password ssh opens the controlling terminal directly.
You will  need to allocate a pseudo terminal for this and make it the
controlling terminal for the ssh process.  (not just std* redirection.)

On 10/27/07, william estrada <MrUmunhum@popdial.com> wrote:
Geoff,

   What is happening is, when I fork off sftp, it captures my terminals
stdio, so I don't see any output in the main program. The only thing
I see is the password request, which I provide and then it doesn't
get anymore output from sftp. Sftp runs just fine but not using the
pseudo terminal.
   I think I need some kind of ioctl call to stop sftp from grabing
the terminal stdio?



William Estrada
MrUmunhum@popdial.com
Mt-Umunhum-Wireless.net ( http://Mt-Umunhum-Wireless.net )
Ymessenger: MrUmunhum



gjgowey@tmo.blackberry.net wrote:
I think I understand what you are saying.  I ran into a similar problem 
trying to run xterm without tying up bash.  Look up using the subsystem 
keyword in the sshd config.  Subsystem will allow sshd to directly spawn a 
process and maintain control over it.

Geoff

Sent from my BlackBerry wireless handheld.

-----Original Message-----
From: william estrada <MrUmunhum@popdial.com>

Date: Fri, 26 Oct 2007 14:36:38
To:secureshell@securityfocus.com
Subject: SSH and pyseudo tty


Hi group,

   Hope this one does not get bounced.

   I have written a C  program that calls sftp as a child using pseudo tty 
master
and slave. I can get logged into the ssh server but control of the parent
program looses control of the terminal.  I know that it is ssh that is doing
the tty chances and I also know that it will work with expect.  I prefer not
use expect.
   Does anyone know what I need to do to fix this problem?  I have searched 
the
web but haven't found anything.

   Hope I am making sense?


--
William Estrada
MrUmunhum@popdial.com
Mt-Umunhum-Wireless.net ( http://Mt-Umunhum-Wireless.net )
Ymessenger: MrUmunhum



-- 
And, did Galoka think the Ulus were too ugly to save?
                                         -Centauri

<Prev in Thread] Current Thread [Next in Thread>