SSH Tunelling

From Augix' Wiki

Jump to: navigation, search

Contents

Create Tunel

In ~/.bashrc

## localhost:7777 -> gate -> eva001:22
alias sshrzg='ssh -l augix -L 7777:eva001.opt.rzg.mpg.de:22 gate.rzg.mpg.de cat -'
alias eva='ssh -p 7777 localhost'

After typing

sshrzg

You forwarded localhost:7777 to eva001.opt.rzg.mpg.de:22

localhost:7777 -> eva001:22

Use Tunel

  • to connect:
eva
  • to copy files
scp -P 7777 localhost:/nfs/eva/augix/cDNA/simulation/sub.sh ~/Projects/cDNA/simulation/sub.sh
scp -P 7777 ~/Projects/cDNA/simulation/sub.sh localhost:/nfs/eva/augix/cDNA/simulation/sub.sh

Use Yummy FTP or any other FTP client

  • Make a bookmark for eva001.opt.rzg.mpg.de:/nfs/eva/augix/cDNA
    • server: localhost
    • port: 7777
    • username: augix
    • password: ********
    • initial path: /nfs/eva/augix/cDNA

Reference

SSH Tunnelling (Port Forwarding) - RZG Transparent Multi-hop SSH

Personal tools