back index forward Michael Renner
Linux Workshop der Max Planck Gesellschaft

tcp tunnel with ssh

protocols and client configuration

waste of time

ftp

$ ssh -L 4712:ftp.uni-gabelburg.local:21 gateway.uni.gabelburg.de

$ ftp -p localhost 4712
Connected to ftp.uni-gabelburg.local.
220 ProFTPD 1.2.0pre10 Server (Uni Gabelburg) [ftp.uni-gabelburg.local]
Name (localhost:renner): renner
331 Password required for renner.
Password:
230 User renner logged in.
Remote system type is UNIX.
Using binary mode to transfer files.

nfs

Eintrag in der /etc/exports
/home gateway(rw,root_squash,insecure) 
Port des mountd ermitteln:
$ rpcinfo -p fileserv
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100003    2   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100005    1   udp    757  mountd
    100005    2   udp    757  mountd
    100005    1   tcp    760  mountd
    100005    2   tcp    760  mountd
Verbindung aufbauen:
$ ssh -L 7777:nfs-server:2049 -L 8888:nfs-server:760 gateway
Verzeichnis mounten:
# mount -t nfs -o mountport=8888,port=7777,proto=tcp localhost:/home /mnt/home/