diff --git a/bin/ssh-proxy b/bin/ssh-proxy index 9d61547..a7c4854 100755 --- a/bin/ssh-proxy +++ b/bin/ssh-proxy @@ -9,11 +9,13 @@ function showHelp() { echo " start profile|port target" echo " stop profile|port target" #echo " stop profile|port target|tmpFile" + #echo " stop port" echo "proxy:" echo " profile Name of the profile (~/.config/ssh-proxy/*)" echo " port Proxy local port" echo " target Proxy target [user@]server[:port]" #echo " tmpFile Proxy instance pid file (/tmp/ssh-proxy/*)" + #echo " port 1024-65535" } if [ "${1}" == "" ]; then @@ -83,17 +85,8 @@ if [[ "${PROXY_SERVER}" == *:* ]]; then PROXY_SERVER="${PROXY_SERVER%:*}" fi -# Debug Point -#echo "PROXY_USER: ${PROXY_USER}" -##echo "PROXY_PASSWORD: ${PROXY_PASSWORD}" -#echo "PROXY_SERVER: ${PROXY_SERVER}" -#echo "PORT: ${PROXY_SERVER_PORT}" - TMP_FILE=/tmp/ssh-proxy-$(whoami)/proxy-${LOCAL_PORT}-${PROXY_USER}@${PROXY_SERVER} -# Debug Point -#echo "${TMP_FILE}" - if [ ! -d /tmp/ssh-proxy-"${USER}" ]; then mkdir /tmp/ssh-proxy-"${USER}" fi