Solved

UNIX SCP

Posted on 2016-10-05
5
87 Views
Last Modified: 2016-10-05
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
0
Comment
Question by:xmouser
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 40

Expert Comment

by:omarfarid
ID: 41829983
can you share the scp command used?
0
 

Author Comment

by:xmouser
ID: 41830038
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.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 41830114
I think this is not scp option.

Why not then use scp command directly?
0
 

Author Comment

by:xmouser
ID: 41830126
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?
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
ID: 41830137
These are not scp options.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
winscp 000webhost.com 6 98
PCI compliance 16 59
Another machine has a duplicate ip? 11 41
How to mitigate against SHA256 hashes if our devices can't support it 8 53
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question