Web Images Videos Maps News Groups Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
OpenSSH, SSH.exe, Windows XP, C++ executable _getche() not getting used
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jmartzoo-goo...@yahoo.com  
View profile  
 More options Oct 3 2007, 12:55 pm
Newsgroups: comp.security.ssh
From: jmartzoo-goo...@yahoo.com
Date: Wed, 03 Oct 2007 09:55:54 -0700
Local: Wed, Oct 3 2007 12:55 pm
Subject: OpenSSH, SSH.exe, Windows XP, C++ executable _getche() not getting used
I've built a tiny executable in with MS Visual C++ that listens to
console input using the _getche() C runtime command.  When I execute
it under an SSH logon, the console input doesn't get directed into the
application.  SSH is *very* new to me, so I don't understand what is
happening.

The same application running in a Telnet session will hit _getche()
and exit when the user types a Y into the console.

What do I need to do for the application to receive user input running
in an SSH session?

Here is the code I've compiled:

--------------------------------
#include "stdafx.h"

#include <conio.h>
#include <ctype.h>

int _tmain(int argc, _TCHAR* argv[])
{
   int ch;

   _cputs( "Type 'Y' when finished typing keys:\n" );
   do
   {
      ch = _getche();
      ch = toupper( ch );
   } while( ch != 'Y' );

   _putch( '\n' );

   return 0;

}

--------------------------------

Many thanks,
John


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jmartzoo-google@yahoo.com  
View profile  
 More options Nov 15 2007, 12:02 pm
Newsgroups: comp.security.ssh
From: "jmartzoo-goo...@yahoo.com" <jmartzoo-goo...@yahoo.com>
Date: Thu, 15 Nov 2007 09:02:24 -0800 (PST)
Local: Thurs, Nov 15 2007 12:02 pm
Subject: Re: OpenSSH, SSH.exe, Windows XP, C++ executable _getche() not getting used
On Oct 3, 11:55 am, jmartzoo-goo...@yahoo.com wrote:

> What do I need to do for the application to receive user input running
> in an SSH session?

Are there any settings in PuTTY's <a href="http://ca.geocities.com/
tubanose2/usr/google/05_SSH_Terminal.PNG">Remote terminal settings</a>
that might help achieve this goal?

Is it something simple that can be achieved by tweaking the tty
emulation settings?  Why does Telnet behave one way and SSH
differently?

Thanks in advance,
John


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jmartzoo-google@yahoo.com  
View profile  
 More options Nov 20 2007, 9:33 am
Newsgroups: comp.security.ssh
From: "jmartzoo-goo...@yahoo.com" <jmartzoo-goo...@yahoo.com>
Date: Tue, 20 Nov 2007 06:33:22 -0800 (PST)
Local: Tues, Nov 20 2007 9:33 am
Subject: Re: OpenSSH, SSH.exe, Windows XP, C++ executable _getche() not getting used
On Nov 15, 12:02 pm, "jmartzoo-goo...@yahoo.com" <jmartzoo-

goo...@yahoo.com> wrote:
> On Oct 3, 11:55 am, jmartzoo-goo...@yahoo.com wrote:

> > What do I need to do for the application to receive user input running
> > in an SSH session?

Is there any chance that installing more of the Cygwin library
including a terminal emulator might help this situation?

If we were to open the SSH session with the server and then launch a
terminal console server side to host our application, would it provide
the key-by-key input response and also kill the child-process upon
disconnect?

What might be good choices for a terminal emulator under Cygwin?

Thanks.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google