Created
January 6, 2015 09:22
-
-
Save connected/3c42fa4ad0af728f472a to your computer and use it in GitHub Desktop.
SSH Connect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case $1 in | |
"test") | |
sshpass -p 11111 ssh -o StrictHostKeyChecking=no [email protected] -p 25225 -t '(cd /var/www/vhosts/test/public_html/ ; /bin/bash )' | |
;; | |
*) | |
echo "server not found" | |
exit | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment