0

Recently I have been getting an error when trying to scp into a CentOS Linux release 7.7.1908 (3.10.0-1062.4.3.el7.x86_64).

These commands work:

  • scp dir/file.txt .
  • scp -r dir/file.txt .

But this command has stopped working:

  • scp dir/* .

The error is:

insecure scp option not allowed.
This account is restricted by rssh.
Allowed commands: scp

What is the permission difference between using a star and just copying the whole directory?

1 Answers1

2

If you are trying to use a glob (*) on the remote directory, you must escape it with backslash first. Otherwise your local shell is going to expand it. See here for a more in-depth discussion.