Bug 2027572
| Summary: | Scp A Directory to a Target Host Whose Version Is Lower Than RHEL9 Fails | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Tingting Mao <timao> |
| Component: | openssh | Assignee: | Dmitry Belyavskiy <dbelyavs> |
| Status: | CLOSED NOTABUG | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | high | ||
| Version: | 9.0 | CC: | coli, jjelen |
| Target Milestone: | rc | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-30 09:05:01 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Tingting Mao
2021-11-30 06:02:18 UTC
Could you please try to use scp -O to enforce the previous behaviour? (In reply to Dmitry Belyavskiy from comment #1) > Could you please try to use scp -O to enforce the previous behaviour? It works when added the -O parameter. # rpm -qa| grep openssh openssh-8.7p1-4.el9.x86_64 openssh-clients-8.7p1-4.el9.x86_64 # scp -r sub1 10.73.72.90:/home/ root.72.90's password: Couldn't canonicalize: No such file or directory Unable to canonicalize path "/home/sub1" failed to upload directory sub1 to /home/sub1 # scp -Or sub1 10.73.72.90:/home/ root.72.90's password: test.img 100% 0 0.0KB/s 00:00 tttt 100% 0 0.0KB/s 00:00 So it is an intended behavior and documented - we've intentionally switched from the SCP to SFTP protocol for scp utility in 9.0 GA, and -O key should be specified for enforcing the old protocol. |