HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SCP with compression
Operating System - HP-UX
1834816
Members
2241
Online
110070
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2003 05:20 AM
07-13-2003 05:20 AM
SCP with compression
Hi,
I am fairly new to the ideas and use of SSH so apologies if I am asking something really obvious.
I have a basic scp command (which is run as part of a script),
scp usr1@rmtsrv:file1.dat file2.dat
This command runs fine, however I want to change the script to explicitly state whether compression should be used or not.
Various posts (particularly http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x061c6049dbb6d611abdb0090277a778c,00.html)
seem to imply that this should be achievable using a -C option but the man pages make no mention of it.
The closest I can find is using
'-o Specify additional options for ssh2.'
and putting the
'+C Enable compression.' command within.
scp -C usr1@rmtsrv:file1.dat file2.dat
returns
illegal option -- C
scp -o +C usr1@rmtsrv:file1.dat file2.dat
ssh2: FATAL: Illegal -o parameter "+C"
The 2 boxes are both running F-Secure SSH 3.0.1 (build 6) on hppa1.1-hp-hpux11.00
Am I going about this in the right way? and is it even possible?
Thanks in advance
Roger
I am fairly new to the ideas and use of SSH so apologies if I am asking something really obvious.
I have a basic scp command (which is run as part of a script),
scp usr1@rmtsrv:file1.dat file2.dat
This command runs fine, however I want to change the script to explicitly state whether compression should be used or not.
Various posts (particularly http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x061c6049dbb6d611abdb0090277a778c,00.html)
seem to imply that this should be achievable using a -C option but the man pages make no mention of it.
The closest I can find is using
'-o Specify additional options for ssh2.'
and putting the
'+C Enable compression.' command within.
scp -C usr1@rmtsrv:file1.dat file2.dat
returns
illegal option -- C
scp -o +C usr1@rmtsrv:file1.dat file2.dat
ssh2: FATAL: Illegal -o parameter "+C"
The 2 boxes are both running F-Secure SSH 3.0.1 (build 6) on hppa1.1-hp-hpux11.00
Am I going about this in the right way? and is it even possible?
Thanks in advance
Roger
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2003 05:44 AM
07-13-2003 05:44 AM
Re: SCP with compression
scp docs say this...
-C Compression enable. Passes the -C flag to ssh(1) to enable compression.
The doc seems to agree with you.
My test with Linux(HP box, finally in the house YEAH!, is turned off) should show same results.
My version on HP-UX is 3.50 from HP tested depots.
Secure shell
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=T1471AA
If you compiled some other version, you are taking risks of bugs and difficulties with HP-UX.
I'm attaching Chris Vail's secureshell doc, because it contains lots of cool nuggets.
SEP
-C Compression enable. Passes the -C flag to ssh(1) to enable compression.
The doc seems to agree with you.
My test with Linux(HP box, finally in the house YEAH!, is turned off) should show same results.
My version on HP-UX is 3.50 from HP tested depots.
Secure shell
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=T1471AA
If you compiled some other version, you are taking risks of bugs and difficulties with HP-UX.
I'm attaching Chris Vail's secureshell doc, because it contains lots of cool nuggets.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2003 11:54 AM
07-13-2003 11:54 AM
Re: SCP with compression
Hello!
You also should know that ssh already use
compression with the zlib so the data
is compresd in the minimal way.
If you want to made more compression i
don't think that it will be good
couse the speed of transfer on fast
network will more slow.
Let's say that you will use bzip2 so to
compress the data you will loose time also
for decompres also it's cpu that will work
on this.
First you should think if it worth it.
Caesar
You also should know that ssh already use
compression with the zlib so the data
is compresd in the minimal way.
If you want to made more compression i
don't think that it will be good
couse the speed of transfer on fast
network will more slow.
Let's say that you will use bzip2 so to
compress the data you will loose time also
for decompres also it's cpu that will work
on this.
First you should think if it worth it.
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 12:27 AM
07-15-2003 12:27 AM
Re: SCP with compression
Cesar,
I am aware that it may not be best to always run compression - making us constrained by cpu rather than bandwidth, and it is for this reason that I want to have the option of switching it.
I am not sure if I unsderstood your comment about bzip2, this is not part of the ssh?
I could run the files through a compress and uncompress before and after the scp, but, I was under the impression that it was possible to enable a higher level of compression as an option in the command - this was more what my question was aimed at.
Regards
Roger
I am aware that it may not be best to always run compression - making us constrained by cpu rather than bandwidth, and it is for this reason that I want to have the option of switching it.
I am not sure if I unsderstood your comment about bzip2, this is not part of the ssh?
I could run the files through a compress and uncompress before and after the scp, but, I was under the impression that it was possible to enable a higher level of compression as an option in the command - this was more what my question was aimed at.
Regards
Roger
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP