Skip to content

Commit

Permalink
ssh timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
kinafu authored Oct 4, 2017
1 parent cbc40ef commit f252ec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sudNET-always-online-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ sudo apt-get -y install sshpass
#sudo ufw allow 22
#sudo ufw enable

echo "Testing Studnet Client Login once"
if sshpass -p $studnetPass ssh -q -o StrictHostKeyChecking=no $studnetNr@$studnetServerIP exit ;
echo "Now testing Studnet Client Login once"
if sshpass -p $studnetPass ssh -q -o StrictHostKeyChecking=no -o ConnectTimeout=5 $studnetNr@$studnetServerIP exit ;
then
echo "Successfully logged in."
else
Expand Down

0 comments on commit f252ec6

Please sign in to comment.