1748106 Members
4976 Online
108758 Solutions
New Discussion юеВ

Re: copy scp very slow

 
SOLVED
Go to solution
Diego Maciel Gomes
Occasional Advisor

copy scp very slow

Hello

I┬┤m with a problem when I start the copy of file by scp.
My scp login is OK, not slow, just copy.
I copy by my machibe, gigabit to hp-ux, slow
I copy hp-ux to hp-ux, slow.
I change the port of switch, therearen┬┤t a problem with port or crc error...
its just happen with hp-ux...

anyone can help me?
11 REPLIES 11
TwoProc
Honored Contributor
Solution

Re: copy scp very slow

Make sure that your HP and the switch are both set the same - both should be at Full Duplex, or both at half. Don't set both to auto, or one to auto and the other at Full or half, etc. Set both ends of the connection between switch and server to the same, and don't use auto.
We are the people our parents warned us about --Jimmy Buffett
Diego Maciel Gomes
Occasional Advisor

Re: copy scp very slow

Hey..

ty for the answer...

but.. when i do the copy using ftp its work a lot :)

just in scp...

Fabien GUTIERREZ
Frequent Advisor

Re: copy scp very slow

clearly you problem comes from the network if you do not have any misconfiguration on you ports i suggest you have a look at your network admin that may have set priorities on protocols on the lan
Steven Schweda
Honored Contributor

Re: copy scp very slow

Define "slow".

Does a very small file take 30 seconds?

Does an SSH login work well? If not,
"ssh -v" may tell you something.

On the server, can you do a reverse name
look-up (address-to-name) of the client?
Slow/bad DNS can cause a delay when making a
connection.
Kenan Erdey
Honored Contributor

Re: copy scp very slow

Hi,

scp is slower than ftp. Becacuse it uses cpu for encryption, because ftp is file transfer protocol, and scp doesn't use network throughput well because of encrption. If scp is much slower than ftp perhaps you may try upgrading your ssh in hp-ux box.

Kenan.
Computers have lots of memory but no imagination
TwoProc
Honored Contributor

Re: copy scp very slow

On the HPUX server, add the hostname of the other machine in the /etc/hosts file.
Do the same on the HPUX server.

If the file is small, it could be a reverse name lookup issue to get started.

So, just make sure the host name of each server is in each other servers' host file.
We are the people our parents warned us about --Jimmy Buffett
Diego Maciel Gomes
Occasional Advisor

Re: copy scp very slow

ty for the answers..
slow is...
my machine in giba to hp-ux giga = 4 kb/s
hp-ux to hp-ux is 23 kb/s

my etc/hosts is OK

if i do the same copy.. using scp.. linux to linux, or hp-ux to linux, its go OK..

if i return, linux to hp-ux, is slow.

my login ssh is OK..

my resolv is OK...

im out of date in updates...

i will try any patche to resolvi this problem... maybe one simply patche save-me ..

TwoProc
Honored Contributor

Re: copy scp very slow

Maybe you've got a cat 5 cable trying to do duty as a cat 6? Possibly stretched over the ballast of a flourescent light???
We are the people our parents warned us about --Jimmy Buffett
Steven Schweda
Honored Contributor

Re: copy scp very slow

> [...] Possibly stretched over the ballast
> of a flourescent light???

Would that be whole wheat "flourescent", or
the ordinary kind?

And the noise would affect SSH and FTP
differently because...?