Replies: 1 comment 13 replies
-
Not entirely accurate I'm afraid. Perhaps the below is clearer: daemons(
n = 4,
url = "tcp://127.0.0.1:5100",
remote = ssh_config("ssh://10.0.0.4:5200", tunnel = TRUE)
)
The tunnel means that the daemons in (4) connect back to host (1). Note that the default SSH port is 22. If that's in use then there's no need to specify a port for the SSH connection. |
Beta Was this translation helpful? Give feedback.
13 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.
-
I would like to leverage the SSH capabilities in
mirai
forcrew
(wlandau/crew#200) but I am not sure I understand the implicit network topology. If I am reading the SSH docs correctly, then if I call:then I would get:
It seems like 127.0.0.1:5100 is the SSH tunnel and 10.0.0.4:5200 is the ordinary TCP connection for daemons. Behind the scenes, does the host call
ssh 10.0.0.4:5100
to SSH into the "remote" over the SSH port 5100?To implement and document this in
crew
, I would like to confirm:mirai
's SSH features may be appropriate when daemons will be launched from a remote machine accessible over SSH and not directly from the local machine running R interactively.crew
.crew
would translate (2) intodaemons(n = 4, url = "tcp://127.0.0.1:SSH_PORT", remote = ssh_config("ssh://REMOTE_IP:DAEMON_PORT", tunnel = TRUE))
Is all this accurate?
Beta Was this translation helpful? Give feedback.
All reactions