Re: [tech] ssh Xforwrding - problème de xhost - fin

2005-11-10 Par sujet eric

eric wrote:

pour faire court, j'ai continué
le xhost + de JLM a été trés efficace, car il a tout débloqué

[EMAIL PROTECTED] xhost -
access control enabled, only authorized clients can connect
[EMAIL PROTECTED] ssh -X [EMAIL PROTECTED]
Password:.etc

Last login: Thu Nov 10 17:44:48 2005 from hp.localdomain
[EMAIL PROTECTED]:~$ mozilla  
--(mozilla s'affiche)

[1] 4833
[EMAIL PROTECTED]:~$ logout
Connection to proto closed.
[EMAIL PROTECTED] xhost 
-( 
il ya avait un problème car avant le déblocage dexhost cette 
commande me donnait en réponse une ligne blanche)

access control enabled, only authorized clients can connect
INET:proto.localdomain
[EMAIL PROTECTED] 
je pense que la situation est un minimum sécurisée et que le problème 
est résolu (je vais quand rbooter les 2), tant pis pour l'origine


Merci à jean luc, jody, jeff, frederic
à bientôt



Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP 


Re: [tech] ssh Xforwrding - problème de xhost - fin

2005-11-10 Par sujet Jody

Bonjour,

eric wrote:


[...]
[EMAIL PROTECTED] ssh -X [EMAIL PROTECTED]
Password:.etc [...]

C'est marrant je ne me sers jamais de l'option -X et ssh fait suivre X 
tout seul sans xhost.


Kaella powa ? :)


Merci à jean luc, jody, jeff, frederic
à bientôt
 


De rien, ssh c'est génial !

Si tu veux faire suivre un port, par exemple le 80 sur lequel écoute ton 
serveur web, caché derrière un routeur ne laissant passer que par le 
port 22 (celui par défaut de ssh):


ssh -N -L 80:localhost:80 [EMAIL PROTECTED]

à effectuer en root pour le port 80,eric étant ton nom d'utilisateur sur 
la machine distante (celle du serveur web)


Ensuite en local, tu pourras accéder, via l'adresse http://localhost , 
au serveur http de ta machine distante via une connection sécurisée.


Tu peux changer les ports bien sûr, exemple pour renvoyer le serveur 
distant sur le port 8080 local:


ssh -N -L 8080:localhost:80 [EMAIL PROTECTED]

Tu y accèderas ainsi en local via:

http://localhost:8080


Jody


Linux-Azur :  http://www.linux-azur.org
D�sinscriptions: http://www.linux-azur.org/liste.php3
 Pas de message au format HTML, SVP