Zak_MakeWithTheFunny
asked on
Monitoring SCP connections.
Howdy All
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.
Cheers
Zak
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.
Cheers
Zak
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I didn't realise the --protocol=inet removed the entries for ssh...
It was right there when I dropped the --protocol=inet.
Cheers,
Zak
It was right there when I dropped the --protocol=inet.
Cheers,
Zak
Try this command:
ps aux | grep sshd