Changes between Version 2 and Version 3 of Realisations/2010-2011/Projet/Documentation/SSH
- Timestamp:
- May 19, 2011, 9:37:30 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Realisations/2010-2011/Projet/Documentation/SSH
v2 v3 32 32 Le tunnel se fait entre '''sphinx''' et la machine '''cible''', en passant par '''gate-net'''. 33 33 34 Après s'être connecté en SSH sur '''sphinx''' ''(ssh utilisateur@sphinx.lip6.fr)'':34 Après s'être connecté en SSH sur '''sphinx''' ''(ssh !utilisateur@sphinx.lip6.fr)'': 35 35 {{{ 36 36 ssh -N -f utilisateur@gate-net.rsr.lip6.fr -L 1900:@cible:443 -L 1901:@cible:5900 … … 43 43 netstat -an | grep -i LISTEN 44 44 }}} 45 45 Par exemple: 46 {{{ 47 -bash-2.05b$ netstat -an | grep -i LISTEN 48 tcp 0 0 127.0.0.1.5900 *.* LISTEN 49 tcp 0 0 127.0.0.1.1234 *.* LISTEN 50 tcp 0 0 127.0.0.1.1987 *.* LISTEN 51 tcp 0 0 127.0.0.1.1100 *.* LISTEN 52 tcp 0 0 127.0.0.1.5999 *.* LISTEN 53 tcp 0 0 *.23 *.* LISTEN 54 tcp 0 0 *.22 *.* LISTEN 55 tcp6 0 0 ::1.5900 *.* LISTEN 56 tcp6 0 0 ::1.1234 *.* LISTEN 57 tcp6 0 0 ::1.1987 *.* LISTEN 58 tcp6 0 0 ::1.1100 *.* LISTEN 59 tcp6 0 0 ::1.5999 *.* LISTEN 60 tcp6 0 0 *.23 *.* LISTEN 61 tcp6 0 0 *.22 *.* LISTEN 62 }}} 63 On voit que sphinx écoute tout ce qui est SSH ou telnet. Le reste des ports en écoute sont probablement des tunnels SSH. 46 64 47 65 == Tunnel entre la maison et sphinx ==