ropensci / ssh

Native SSH client in R based on libssh
https://docs.ropensci.org/ssh
Other
127 stars 21 forks source link

a few quick questions #2

Closed cboettig closed 5 years ago

cboettig commented 6 years ago

Excellent stuff here, very nice!

Does ssh tunnel support port forwarding? (e.g. such that one could run RStudio-server on a server that has no ports open that could allow a direct http connection, but by forwarding the port through the tunnel one could access the server RStudio over localhost?)

having scp support looks particularly useful. Would bindings for rsync / librsync also be in scope for this (or maybe as a separate package?)

jeroen commented 5 years ago

You can use ssh_tunnel() to create an ssh tunnel indeed. So you should be able to access an rstudio-server via ssh if that is what you are thinking off. However perhaps it's safer to run the tunnel using ssh rather than in R :-) But it should work.

rsync and librsync are not in the scope of this project. In particular the faq for librsync states that:

What librsync is not librsync does not implement the rsync wire protocol. If you want to talk to an rsync server to transfer > files you'll need to shell out to rsync. You cannot make use of librsync to talk to an rsync server.