Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2013-10-26 23:28:38 +02:00
commit 9468f9b060
34 changed files with 108 additions and 58 deletions

View file

@ -20,11 +20,21 @@ HOST="nico@62.65.138.78"
HOST="home.schottelius.org"
HOST="nico@77.109.138.222"
ssh -T -f -C -N -L2323:mx3.schottelius.org:$IMAPS "$HOST"
ssh -T -f -C -N -L4241:mx3.schottelius.org:$SMTP "$HOST"
if [ $# -ge 1 ]; then
HOST=$1; shift
fi
ssh -T -f -C -N \
-L2323:mx3.schottelius.org:$IMAPS \
-L4241:mx3.schottelius.org:$SMTP \
-L2324:imap.googlemail.com:$IMAPS \
-L2325:mail.zhaw.ch:$IMAPS \
-R :4242:localhost:22 \
-D 12345 \
"$HOST" "$@"
# Fernzugriff
ssh -T -f -C -N -R4242:localhost:22 "$HOST"
# ssh -T -f -C -N -R4242:localhost:22 "$HOST"
#ssh -T -f -C -N -L2342:mx2.schottelius.org:$SMTP 62.65.138.66
#ssh -T -f -C -N -L4242:imaps.schottelius.org:$IMAPS "$HOST"