-
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$ ftp gayant05.students.deule.net
Connected to gayant05.students.deule.net.
220 ...
Name (gayant05.students.deule.net:rex):
331 Password required for rex.
Password:
230 User rex logged in.
ftp> cd .ssh
250 CWD command successful.
ftp> lcd .ssh
Local directory now /home/imaEns/rex/.ssh
ftp> put id_rsa.pub authorized_keys
local: id_rsa.pub remote: authorized_keys
200 PORT command successful.
150 Opening BINARY mode data connection for authorized_keys
226 Transfer complete.
329 bytes sent in 0.01 secs (27.8 kB/s)
ftp> quit
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 proxy.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 proxy.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 proxy.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: