Sunday, September 19, 2010
sshtunnel
#!/bin/bash -
#===============================================================================
#
# FILE: sshtunnel.sh
#
# USAGE: ./sshtunnel.sh
#
# DESCRIPTION: for ssh link the blockcn file server.
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: kk (Kingkong Mok), kingkongmok@gmail.com
# COMPANY:
# CREATED: 09/18/2010 11:26:11 PM CST
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
if [ `whoami` = root ] ; then
su kk -c "ssh -qTfnN -D 7070 kingkongmok@ssh201.blockcn.com"
else
exit 3;
fi
#===============================================================================
#
# FILE: sshtunnel.sh
#
# USAGE: ./sshtunnel.sh
#
# DESCRIPTION: for ssh link the blockcn file server.
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: kk (Kingkong Mok), kingkongmok@gmail.com
# COMPANY:
# CREATED: 09/18/2010 11:26:11 PM CST
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
if [ `whoami` = root ] ; then
su kk -c "ssh -qTfnN -D 7070 kingkongmok@ssh201.blockcn.com"
else
exit 3;
fi