ssh/scp - can you specify timeout?

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

Really? Forever?

Is the machine on the same subnet?

Is there a firewall suppressing ICMP messages?

Its on a different subnet....

Not sure if its suppressing messages or not

If your using OpenSSH then use the ConnectTimeout option

scp -o ConnectTimeout=30 user1@servera:testdir/test.log /logs