Avatar of xmouser
xmouser
Flag for United States of America asked on

UNIX SCP

A vendor is running a script to move files from our storage server to their location. SCP is hanging after 19 file transfers, restarted and it hang again after 19 files are transferred.

By grepping the account that SCP is running under: ps -ef | grep <admin account> they see:

/usr/bin/ssh -x -oForwardAgent no -oClearAllForwardings yes p22 -lftpcable ...

They tell us if they stop this process, all the files waiting to be transferred transfer (many more than 19). However, I can kill -oForwardAgent  but I'm not seeing any difference in the issue - file transfer still hangs.

The process after killing comes back almost immediately so I'm a bit leery of their statement 'if we kill it then all the files come to us' since I can't duplicate this.

So, what does -oForwardAgent do, is it necessary and how do I suspend it for a length of time greater than the few seconds it's 'gone' after a kill to test if it is in fact causing this 'hang'.

Solaris 10
SSH / Telnet SoftwareNetwork SecurityUnix OS

Avatar of undefined
Last Comment
omarfarid

8/22/2022 - Mon
omarfarid

can you share the scp command used?
xmouser

ASKER
omarfarid: It's contained - so I'm told, within a perl script that in addition to transferring files does some validation. I believe the issue is this file but I have to run down everything. So no to the specific command.

What does th-x -oForwardAgent no -oClearAllForwardings yes p22 do?

If I just run scp <file name> <location to be sent to> the files move over with no issue or hanging.

Again, I'm told, that perl has it's own version of SCP.
omarfarid

I think this is not scp option.

Why not then use scp command directly?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
xmouser

ASKER
omarfarid: They're telling us that the script their using does validation and a few other tasks at the same time.

So to be clear oForwardAgent  -oClearAllForwardings are 'hard coded' and while I might be able to kill the process temporarily it will continue to run when using SCP?
ASKER CERTIFIED SOLUTION
omarfarid

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.