Tuesday 7 February 2012

ssh port forwarding


Forward connections to $HOSTNAME:8080 out to $HOST:80

# ssh -g -L 8080:localhost:80 root@$HOST

Forward connections from $HOST:1434 in to imap:143

# ssh -R 1434:imap:143 root@$HOST


No comments:

Post a Comment