openff-evaluator
openff-evaluator copied to clipboard
Executable for SSH tunnelling?
trafficstars
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.