View previous topic :: View next topic |
Author |
Message |
angela Apprentice
Joined: 16 Feb 2005 Posts: 150
|
Posted: Fri Mar 10, 2006 7:41 pm Post subject: [ssh] open failed: administratively prohibited (résolu) |
|
|
Coucou tout le monde,
je suis en train de lire ce tuto: https://forums.gentoo.org/viewtopic-t-281671.html . J'ai bien de la peine pour le moment, je ne comprends pas tout
Enfin voilà, j'ai voulu essayer de faire:
Code: | Host=B
Hostname=81.13.122.23 (serveur distant, IP fictive)
User=couc
LocalForward=1234 81.13.122.45:666 (autre machine, tournant sur le port 666)
Host=CviaB
Hostname=localhost
Port=1234
User=moi |
Donc quand je fais
Code: | ssh -v B
[...]
debug1: Local connections to LOCALHOST:1234 forwarded to remote address 81.13.122.45:666
debug1: Local forwarding listening on 127.0.0.1 port 1234.
bind: Address already in use
socket: Address family not supported by protocol
channel_setup_fwd_listener: cannot listen to port: 1234
Could not request local forwarding.
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
Last login: Fri Mar 10 20:30:45 2006 from 81.13.XX.YY |
On voit quelques erreurs déjà. Ensuite, quand je fais
Code: | ssh CviaB -v
OpenSSH_4.2p1, OpenSSL 0.9.7i 14 Oct 2005
debug1: Reading configuration data /home/angela/.ssh/config
debug1: Applying options for CviaB
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to localhost [127.0.0.1] port 1234.
debug1: Connection established.
ssh_exchange_identification: Connection closed by remote host
|
Et sur la machine B, j'ai:
Code: | channel 2: open failed: administratively prohibited: open failed |
Pourtant, le AllowTcpForwarding=yes sur B.
Vous pouvez m'expliquer pk ça ne marche pas ?
******************
Accessoirement, je ne comprends pas pk on fait:
Code: | Host=CviaB
Hostname=localhost
Port=1234
User=moi |
En gros, ça voudrait dire que je me connecte sur le serveur SSH de la machine sur laquelle je ssuis, avec comme pseudo "moi" sur le port 1234 ? Mais le serveur ssh écoute sur le port 22 non ? comprends pas
Merci beaucoup pour le futur coup de pied
Last edited by angela on Fri Mar 10, 2006 9:19 pm; edited 1 time in total |
|
Back to top |
|
|
man in the hill Veteran
Joined: 15 Dec 2005 Posts: 1552 Location: Madinina
|
Posted: Fri Mar 10, 2006 8:55 pm Post subject: |
|
|
Salut,
J'utilise ssh tous les jours sur mon réseau local...
Qu'est que tu veux faire exactement car cela m'a l'air bien compliqué tout ça !!!!
Colle-moi ton /etc/ssh/ssh_config du client...
le /etc/ssh/sshd_config du serveur...
@ + _________________ Get Up and Go ! |
|
Back to top |
|
|
angela Apprentice
Joined: 16 Feb 2005 Posts: 150
|
Posted: Fri Mar 10, 2006 9:18 pm Post subject: |
|
|
En fait, j'ai compris après quelques essais...
Quand on fait Code: | Host=B
Hostname=81.13.122.23 (serveur distant, IP fictive)
User=couc
LocalForward=1234 81.13.122.45:666 (autre machine, tournant sur le port 666)
Host=CviaB
Hostname=localhost
Port=1234
User=moi |
Ca parrait plus parlant en faisant:
Code: | ssh -L 1234:81.13.122.45:666 root@81.13.122.23 |
En gros, on ouvre le port 1234 du localhost. En faisant
Code: | ssh localhost -p 1234 |
Je me connecte sur le serveur 81.13.122.45 via le port 666...
Voilà, c'est plus clair maintenant...
PS: pour faire du DynamicForward, simplement faire: ssh -D 1234 machine_hote |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|