Access non-local resources via SSH/SFTP #522
gian-didom
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
|
I was able to spin-up an implementation of SSH file access via Do you think it I should submit a pull request? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
From Pkl documentation, it seems that it is possible to access a non-local resources with an HTTP(S) URL.
I'm using Pkl to setup a distributed local environment, in which the machines do not have a running HTTP(S) server; instead, they all have an SSH and SFTP server.
I think it could be a great addition to use URLs such as
ssh://remote-hostname/path/to/file.pklorsftp://remote-hostname/path/to/file.pklto automatically load remote resources without complex setups. I think that this is currently achievable by using some kind of filesystem mounting, but maybe there could be a more elegant way to achieve this.EDIT: At https://github.com/gian-didom/pkl-ssh/tree/sftp there's a version that uses Apache MINA SSH library to add support for SFTP.
It works well; however, it could be more elegant to only provide an SFTP filesystem provider and leave everything else as-is. Also, I wasn't able to generate native images due to linking and initialization errors.
Beta Was this translation helpful? Give feedback.
All reactions