相关疑难解决方法(0)

SSH 上的 RYSNC 不适用于受限 shell

我需要在我的生产服务器中授予一些 X 先生的访问权限,以便他可以将文件推送到我的服务器。由于没有必要给他 shell 访问权限,我决定使用受限 shell (rssh),以便他只能将文件复制到我的服务器而无法访问它。该文件将通过 SSH 使用 RSYNC 传输。

用于传输文件的命令是

rsync -ua  -e 'ssh -p 55'  /appdata/paths/ 192.168.4.172:/home/example/ 
Run Code Online (Sandbox Code Playgroud)

但是使用受限 shell 通过 SSH 进行 rsync 似乎无法正常工作

$ rsync -ua /appdata/paths/ -e 'ssh -p 565'
example@192.168.2.142:/home/example/
#################################################################################################################

 This service is restricted to authorized users only. All activities on this system     
 are logged.            ##
  ##   Unauthorized access will be fully investigated and reported to the appropriate     
 law enforcement agencies.  ##
Run Code Online (Sandbox Code Playgroud) #
  insecure -e option not allowed.
 This account is restricted by …
Run Code Online (Sandbox Code Playgroud)

shell ssh rsync

4
推荐指数
1
解决办法
3907
查看次数

标签 统计

rsync ×1

shell ×1

ssh ×1