Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Executable for SSH tunnelling? #404

Open
lilyminium opened this issue Nov 15, 2021 · 0 comments
Open

Executable for SSH tunnelling? #404

lilyminium opened this issue Nov 15, 2021 · 0 comments

Comments

@lilyminium
Copy link
Contributor

lilyminium commented Nov 15, 2021

Being able to monitor the Dask dashboard remotely is a useful feature. I can do this currently with:

function dashboard {
    address=$1
    port=$2
    dest=${3:-hpc3}
    ssh -N -f -L 127.0.0.1:${port}:${address}:${port} ${dest}
    url="127.0.0.1:${port}/status"
    echo "Dashboard started at ${url}"
}

and it's called with the below when I want to tunnel to the hpc3 cluster (dest has a default argument of hpc3):

dashboard 10.240.58.91 8080

Do you think it'd be possible to add this as a command-line tool? If using subprocess, you may need to set shell=True. I'm not sure how complex it would be to deal with presence or absence of SSH configs. I'm also not familiar with creating python-less command-line tools beyond the simple function above. I think a well-documented command line tool for this would be super super helpful for anyone not familiar with dask, ssh, tunnelling, or has just not memorised the syntax.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant