Some simple ssh helper functions #1
dpeg22
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Purpose
Here is a bash script that I wrote to streamline connecting to virgas over ssh and opening ssh tunnels to specific ports (i.e. for jupyter notebooks). Feel free to suggest additions to this or ask if there are other things similar to this that may be useful :-)
Steps to implement
username
to their ownbashrc
:source ~/path/to/ssh_func.sh
Code
How to use
Note: the leading 0 is included, so the virga# will be a single digit
to open an ssh connection to a virga:
con_virga <virga#>
once on that virga you can start a jupyter server and then open a tunnel to that server via:
virga_jupyter <virga#> <port#>
A more verbose example:
Beta Was this translation helpful? Give feedback.
All reactions