UCSF-CBI / rstudio-server-controller

RStudio Server Controller (RSC) - A Tool for Launching a Personal Instance of the RStudio Server
https://github.com/UCSF-CBI/rstudio-server-controller
ISC License
4 stars 2 forks source link

Avoid mentioning SSH port forwarding when launched on local computer #77

Closed HenrikBengtsson closed 1 year ago

HenrikBengtsson commented 1 year ago

Example:

If you are running from a remote machine without direct access to hb-x1-2023, you can use SSH port forwarding to access the RStudio Server at <http://127.0.0.1:8787> by first running 'ssh -L 8787:hb-x1-2023:24080 henrik@tty2' in a second terminal.

Here it picks up tty2 as the "login" host, but that's clearly not a host name. This can happen when we run on the local machine.

Try to improve the guesstimate for running locally and, if detected, skip the above suggestion.

HenrikBengtsson commented 1 year ago

As a starter, added a special case where tty2 is never recognized as a host name.