PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.security.ssh > Using ssh tunnel created by PuTTy within PuTTy doesn't work
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.security.ssh SSH secure remote login and tunneling tools.

Using ssh tunnel created by PuTTy within PuTTy doesn't work

Réponse
 
LinkBack Outils de la discussion
Vieux 01/11/2006, 16h13   #1
sean.neeley@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Using ssh tunnel created by PuTTy within PuTTy doesn't work

I'm trying to add on some of my own win32 code to the PuTTy source to
retrieve a web page through an ssh tunnel. I establish the tunnel on
port 80 with one of my PuTTy sessions. Once connected and the tunnel
is established, I have code that creates a new socket connection to
localhost port 80 to retrieve a file when an certain escape sequence is
encountered. The problem is, the connection always hangs waiting to
receive data from the web server. I have also tried using
ShellExecuteEx() within my code to run wget.exe to retrieve the web
page. This also hangs. I can test that the tunnel exists by telneting
to port 80 and pasting the HTTP GET command, and also by bringing up a
web browser... both of these work fine. Also if I bring up an
identical second PuTTy session, the web retrieval works in that
session. Can someone please explain to me why this does not work and
what I can do to make it work? Thanks.

  Réponse avec citation
Vieux 07/11/2006, 21h01   #2
crazyForDynamite
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Using ssh tunnel created by PuTTy within PuTTy doesn't work

dont use putty.exe within scripts, use plink.exe

On Nov 1, 10:13 am, "sean.nee...@gmail.com" <sean.nee...@gmail.com>
wrote:
> I'm trying to add on some of my own win32 code to the PuTTy source to
> retrieve a web page through an ssh tunnel. I establish the tunnel on
> port 80 with one of my PuTTy sessions. Once connected and the tunnel
> is established, I have code that creates a new socket connection to
> localhost port 80 to retrieve a file when an certain escape sequence is
> encountered. The problem is, the connection always hangs waiting to
> receive data from the web server. I have also tried using
> ShellExecuteEx() within my code to run wget.exe to retrieve the web
> page. This also hangs. I can test that the tunnel exists by telneting
> to port 80 and pasting the HTTP GET command, and also by bringing up a
> web browser... both of these work fine. Also if I bring up an
> identical second PuTTy session, the web retrieval works in that
> session. Can someone please explain to me why this does not work and
> what I can do to make it work? Thanks.


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h49.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12622 seconds with 10 queries