Monitoring SCP connections.
Posted on 2006-04-06
We have a site that uploads data to us using SCP, and it is quite a large amount of data, about a 400+ meg tar.gz from Africa, so the connection is pretty slow. Our technician over there automates it so that it happens late at night for them, and theoretically it should be done in the morning... only thing is, I don't know how to verify that it HAS finished copying by the time I get into work the next day.
I have tried "netstat --protocol=inet" and "who -aHu" (at first, I didn't realise that scp didn't create a shell session...) but neither tell me. I don't know what other commands I might be able to use. Obviously, if the TAR ball hasn't finished copying, then untar'ing it at that point is no good.
Does anyone know how I might check if the connection is still open. I know the inbound IP address they will be connecting to.