2014-12-19 18:55:39 +01:00
|
|
|
#!/bin/bash
|
2015-01-16 13:54:37 +01:00
|
|
|
[ "$1" ] && LOCAL_PORT=$1 || LOCAL_PORT=22
|
|
|
|
[ "$2" ] && REMOTE_PORT=$2 || REMOTE_PORT=$(($LOCAL_PORT + 45000))
|
2014-12-19 18:55:39 +01:00
|
|
|
export SSH_ASKPASS=@libexecdir@/openssh/ssh-askpass
|
2015-01-16 13:54:37 +01:00
|
|
|
ssh -p 4424 -N -R $REMOTE_PORT:localhost:$LOCAL_PORT assistenza@services.mambasoft.it
|