Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Deployment 无SSH访问的Rsync_Deployment_Ssh_Shared Hosting_Rsync - Fatal编程技术网

Deployment 无SSH访问的Rsync

Deployment 无SSH访问的Rsync,deployment,ssh,shared-hosting,rsync,Deployment,Ssh,Shared Hosting,Rsync,首先,我不确定这是提出这个问题的最佳地点,所以如果它需要移动,那很酷 我共享了没有SSH访问的主机,在部署/rsyncing方面我有什么选择 我用PHP构建应用程序并使用GIT,不确定这是否会改变情况…Rsync旧版本使用rsh作为传输层,被更安全的ssh取代, 但是,您可以强制它使用带有-e标记(-rsh)的其他传输 备选方案 (不带ssh) 不带ssh(读取远程操作部分) HTTP上类似rsync的行为我认为Joao忽略了在(锁定的)共享托管环境中工作的微妙之处 但是,如果您确实需要执行

首先,我不确定这是提出这个问题的最佳地点,所以如果它需要移动,那很酷

我共享了没有SSH访问的主机,在部署/rsyncing方面我有什么选择


我用PHP构建应用程序并使用GIT,不确定这是否会改变情况…

Rsync旧版本使用
rsh
作为传输层,被更安全的ssh取代, 但是,您可以强制它使用带有-e标记(-
rsh
)的其他传输

备选方案

(不带
ssh

不带ssh(读取远程操作部分)


HTTP上类似rsync的行为我认为Joao忽略了在(锁定的)共享托管环境中工作的微妙之处

但是,如果您确实需要执行正确的rsync,您是否考虑过从共享主机执行rsync拉取操作

  • 我假设有一些DSL路由器,可以解析其外部IP地址
  • 您可以设置从rsync直接套接字到开发盒的端口转发
  • 您可以编写一个简单的PHP(或其他)脚本,将rsync请求封装在
    proc\u open()
    中。(我有一个在共享服务上执行此操作的标准命令)
好的,这里有一个漏洞,rsync端口将公开给internet,直接套接字方法不加密有效负载,但您不需要使用默认值,服务只需要在rsync本身期间运行

我只是使用一个(delta)tarball来存储任何更新,并在本地爆炸,作为我共享托管帐户发布过程的一部分,但是rsync就在那里。无论如何,这值得一试

$ remote rsync --version
rsync  version 3.0.6  protocol version 30
Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
    64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
    socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
    append, ACLs, xattrs, iconv, no symtimes

rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.
$ remote rsync --version
rsync  version 3.0.6  protocol version 30
Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
    64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
    socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
    append, ACLs, xattrs, iconv, no symtimes

rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.