Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ssh] open failed: administratively prohibited (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
angela
Apprentice
Apprentice


Joined: 16 Feb 2005
Posts: 150

PostPosted: Fri Mar 10, 2006 7:41 pm    Post subject: [ssh] open failed: administratively prohibited (résolu) Reply with quote

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 :oops: :oops:

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 :oops:


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
View user's profile Send private message
man in the hill
Veteran
Veteran


Joined: 15 Dec 2005
Posts: 1552
Location: Madinina

PostPosted: Fri Mar 10, 2006 8:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
angela
Apprentice
Apprentice


Joined: 16 Feb 2005
Posts: 150

PostPosted: Fri Mar 10, 2006 9:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
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