Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit


» HP STK home
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
Content starts here

critical impact:

scp - OpenSSH scp not compatible with scp2 (CrCh352)

CMD Impacts SEC Impacts

Problem description

The scp (secure copy) command on HP-UX is not compatible with the version on Tru64 UNIX.

If you try to use the scp command on HP-UX to copy a file to Tru64 UNIX, the command will fail with the following error message:

    scp: FATAL: Executing ssh1 in compatibility mode failed (Check
    that scp1 is in your PATH).

This is a known scp incompatibility between OpenSSH and SSH Tectia. HP-UX uses OpenSSH, an open source SSH. Tru64 UNIX uses an SSH based on SSH Tectia, a commercial SSH from the original developers of SSH.

The reason for the incompatibility is that the two versions of scp use different protocols. The HP-UX scp is scp1, which uses the SCP1 protocol. The Tru64 UNIX scp is scp2, which uses the SFTP protocol. When scp2 gets an SCP1 request, it tries to handle the request by executing the scp1 command and that fails if scp1 is not installed.

The problem does not exist when copying the other way, that is, from Tru64 UNIX to HP-UX, because scp2 on Tru64 UNIX communicates directly with the sftpd daemon on HP-UX and bypasses the HP-UX scp1 completely.


UNIX Commandsscp                

Old behavior

scp file remote_host:remote_dir

See also

Solution description

To securely copy files from HP-UX to Tru64 UNIX, either use sftp or pipe the output of tar through ssh.

New behavior

tar cf - file | (ssh remote_host "cd remote_dir; tar xf -")

See also

Problem summary

classifications source types OS release severity type
CMD, SEC Make, Script any HP-UX 11i version critical changed
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.