Skip to content

Instantly share code, notes, and snippets.

@connected
Created January 6, 2015 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save connected/3c42fa4ad0af728f472a to your computer and use it in GitHub Desktop.
Save connected/3c42fa4ad0af728f472a to your computer and use it in GitHub Desktop.
SSH Connect
#!/bin/bash
case $1 in
"test")
sshpass -p 11111 ssh -o StrictHostKeyChecking=no test@test.lv -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