Publii
Publii copied to clipboard
[Feature Request]: deployment via SFTP over multiple hops
Feature Description
Hi, not all of us want our web servers to be reachable via SSH from the outside, opting instead to go via a proxy machine that in turn doesn't serve as a web server. Unfortunately, that means these are not reachable by Publii's SFTP deployment method.
Would it be possible to make Publii aware of ~/.ssh/config
and let, on machines where that file exists, ssh handle the rest?
Unfortunately, that means these are not reachable by Publii's SFTP deployment method.
On a quick lookup, the currently used ssh2-sftp-client
library does not seem to support ProxyJump completely.
Would it be possible to make Publii aware of ~/.ssh/config and let, on machines where that file exists, ssh handle the rest?
Just reading /.ssh/config
would not be a very portable solution, since this is mostly Unix specific (on Windows most users use Putty, and they also need ProxyJump support).
One temporary soution might be to mount the remote SFTP/SCP directory locally, and let Publii deploy "locally" to this mounted directory.