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 > tunnel http/https over SSH
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.security.ssh SSH secure remote login and tunneling tools.

tunnel http/https over SSH

Réponse
 
LinkBack Outils de la discussion
Vieux 25/09/2006, 06h22   #1 (permalink)
gcnovus
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut tunnel http/https over SSH

I've just created a development server that I want restricted to local
access only, but allow SSH tunneling, too. (Part of the reason is that
I only have one public IP, but I wanted multiple SSL domains.)

My router forwards public port 18020 to port 20 on my host machine.

I tried ssh -p 18020 -L 19000:localhost:19000 gcnovus@my.public.domain,
and then set up my browser to use localhost:19000 as a proxy for all
services, but I got:
channel 3: open failed: connect failed: Connection refused

I've read around on the forum, and found some posts about starting the
connection from inside the firewall, then creating another one within
that connection, but I won't be around the server to initiate those
connections. I also noticed some information about an /etc/.hosts
file, but I'm fairly new to unix and am quite confused.

If anyone has any suggestions, I'd greatly appreciate them.

Thanks,
GCN

  Réponse avec citation
Vieux 25/09/2006, 06h32   #2 (permalink)
gcnovus
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: tunnel http/https over SSH

sorry, just to be clear:
I ran the SSH command from the OutsideTheFirewall (OF) computer, and
the error message showed up within that SSH connection (though,
technically, on the IF computer).

-gcnovus

  Réponse avec citation
Vieux 25/09/2006, 08h13   #3 (permalink)
René Berber
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: tunnel http/https over SSH


gcnovus wrote:

> I've just created a development server that I want restricted to local
> access only, but allow SSH tunneling, too. (Part of the reason is that
> I only have one public IP, but I wanted multiple SSL domains.)
>
> My router forwards public port 18020 to port 20 on my host machine.


You mean port 22 (ssh) not 20 (ftp-data)?

> I tried ssh -p 18020 -L 19000:localhost:19000 gcnovus@my.public.domain,

----------------------------------------------^^^^^^^^^^
localhost is wrong, it should be the address of your server:
my.public.domain, but you can also use the internal address if it has
one.

You may also look into using parameters -NfC in that tunnel, you need
at least -N.

HTH
--
René Berber

  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 23h05.


É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,08352 seconds with 11 queries