Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HCC docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Holland Computing Center
HCC docs
Commits
d87d3bb5
Verified
Commit
d87d3bb5
authored
2 years ago
by
Adam Caprez
Browse files
Options
Downloads
Patches
Plain Diff
Make workaround more visible.
parent
6c70413f
No related branches found
No related tags found
1 merge request
!356
Make workaround more visible.
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
content/handling_data/data_transfer/scp.md
+8
-4
8 additions, 4 deletions
content/handling_data/data_transfer/scp.md
with
8 additions
and
4 deletions
content/handling_data/data_transfer/scp.md
+
8
−
4
View file @
d87d3bb5
...
@@ -47,10 +47,12 @@ $ scp <user_name>@crane.unl.edu:/work/<group_name>/<user_name>/data.csv ./
...
@@ -47,10 +47,12 @@ $ scp <user_name>@crane.unl.edu:/work/<group_name>/<user_name>/data.csv ./
### Potential incompatibility with recent versions of scp
### Potential incompatibility with recent versions of scp
{{% notice
note
%}}
{{% notice
info
%}}
The
scp command when used with shell variable or pathname expanded
Recent versions of
scp command when used with shell variable or pathname expanded
source/target arguments, along with certain recursive copy requests,
source/target arguments, along with certain recursive copy requests,
may return unexpected errors compared with older versions of the command.
may return unexpected errors compared with older versions of the command.
**Use the `-O` option to restore the prior behavior and work around the issue.**
{{% /notice %}}
{{% /notice %}}
Beginning with OpenSSH release 8.8, the scp client defaults to using
Beginning with OpenSSH release 8.8, the scp client defaults to using
...
@@ -58,9 +60,10 @@ the SFTP protocol over the legacy SCP protocol. This change in protocol
...
@@ -58,9 +60,10 @@ the SFTP protocol over the legacy SCP protocol. This change in protocol
removes the user's shell from completing environment variable expansion
removes the user's shell from completing environment variable expansion
or wildcard pathname matching on the path component being serviced by
or wildcard pathname matching on the path component being serviced by
the remote server side of the transfer, as used in the SCP protocol.
the remote server side of the transfer, as used in the SCP protocol.
This may cause scp transfers to return errors that worked with prior
*
This may cause scp transfers to return errors that worked with prior
versions of scp.
versions of scp.
*
Some example error messages are listed below.
{{% panel theme="info" header="Example error messages" %}}
{{
<
highlight
bash
>
}}
{{
<
highlight
bash
>
}}
# Recursive copy incompatibility example.
# Recursive copy incompatibility example.
# <source_dir> is missing from the target path resulting in error:
# <source_dir> is missing from the target path resulting in error:
...
@@ -77,6 +80,7 @@ scp: failed to upload directory <source_dir> to /work/<group_name>/<user_name>/
...
@@ -77,6 +80,7 @@ scp: failed to upload directory <source_dir> to /work/<group_name>/<user_name>/
$ scp
<user_name>
@crane.unl.edu:'$WORK/path/to/file' .
$ scp
<user_name>
@crane.unl.edu:'$WORK/path/to/file' .
scp: $WORK/path/to/file: No such file or directory
scp: $WORK/path/to/file: No such file or directory
{{
<
/
highlight
>
}}
{{
<
/
highlight
>
}}
{{% /panel %}}
To restore the prior shell expansion behavior on the remote server side
To restore the prior shell expansion behavior on the remote server side
of the transfer, add the
[
-O
](
https://man.openbsd.org/scp#O
)
flag in your
of the transfer, add the
[
-O
](
https://man.openbsd.org/scp#O
)
flag in your
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment