-
Exemple de session ssh :
oleron$ ssh gayant05.students.deule.net
rex@gayant05.students.deule.net's password:
Last login: Tue Oct 3 13:14:31 2000 from oleron.staff.yser.net on pts/0
gayant05:~$ exit
oleron$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Key generation complete.
Enter file in which to save the key (/home/imaEns/rex/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
...
oleron$ scp .ssh/id_rsa.pub gayant05.students.deule.net:.ssh/authorized_keys2
rex@gayant05.students.deule.net's password:
id_rsa.pub 100% 392 0.4KB/s 00:00
oleron$ ssh gayant05.students.deule.net
Last login: Tue Oct 3 13:34:39 2000 from oleron.staff.yser.net on pts/0
gayant05:~$
- Redirection de l'affichage du serveur X11 :
ailleurs$ ssh -X -p 2222 portier.polytech-lille.fr
weppes$ echo $DISPLAY
weppes:12.0
weppes$ xeyes
- Redirection d'un port local :
ailleurs:term1$ ssh -L 2323:hainaut:23 -p 2222 portier.polytech-lille.fr
ailleurs:term2$ telnet localhost 2323
$ telnet localhost 2323
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
hainaut login:
- Redirection d'un port distant :
ailleurs$ ssh -R 2323:ici:23 -p 2222 portier.polytech-lille.fr
gayant05:~$ telnet weppes 2323
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Debian GNU/Linux testing/unstable ici
ici login: