I am scp'ing a file from a server (servera) to my server (serverb)
If servera is down - the scp never times out ... it just hangs eternally..
It is possible to specify a timeout in my script - so if scp fails/hang for more than 60 seconds I assume its failed ?
I am aware there is some timeout value I can set on servera in the sshd_config file on servera but I would prefer if I could include some sort of timeout in my script running on serverb
Example command: scp user1@servera:testdir/test.log /logs