Skip to content

Recovering disconnected sessions #51

@adatum

Description

@adatum

Is it possible to reconnect with an R session on the server after the client has lost connection? This could be due to network issues or simply for having the ability to put the client on standby while a task is run on the server.

As per the documentation, this works to connect and tunnel over SSH:

ssh -p XXXXX USER@SERVER -L 55556:localhost:55555 'Rscript -e "remoter::server(port=55555)"'

However, if disconnected, R continues to run on the server indefinitely, and running the above command again creates a new R process.

Ideally, a solution would:

  • allow disconnecting and reconnecting to the same R session
  • not kill or stop tasks running on the server
  • be possible to do with SSH tunnelling, without needing to open ports

I thought of trying something with mosh or et but I have not yet succeeded. mosh cannot do port forwarding/tunnelling. Also, both require opening ports.

Any ideas?

Thanks for making this great package!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions