If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > ssh connection timeout ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-14-07, 05:13
GhostDJ GhostDJ is offline
Registered User
 
Join Date: Sep 2003
Location: France
Posts: 6
Question ssh connection timeout ?

Hi
I have a script, doing some ssh ...scp ... from a master server to several users from a unique machine
the problem is, that some user are blocking at the password step though I have filled the authorized_key of the master server...
it could also append, if the password changes

so i 'd like to make a timeout but I don't know how...

this example does"nt work :
scp blablabla &
wait $!

ON SCREEN :
+ scp /data/samba/masters/admin/admin.tar psunit04@TOTO:/exec/products/unit04/admin.tar
Welcome to the server TOTO,
psunit04@TOTO's password:

waiting from here...so sad

the only solution I see, is to replace wait, by a loop that "sleep" while the pid is not ended, and at last kill the pid
that 's not very nice for me...

is there another solution ?

thanks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On