SSHing into AWS and Running Things 🌱
Setup
- Create SSH Key
ssh-keygen - In AWS terminal register your key:
mkdir -p ~/.sshvim ~/.ssh/authorized_keysand copy the contents of your entire local public key file into this that you generated with step 1- In an AWS jupyterhub terminal you can find our your username with
whoami - set the command
jhub_sshto ssh into your AWS jupyterhubalias jhub_ssh='ssh -i <local path to public key> <username>@<AWS ec2 instance>'
How to Get In
jhub_ssh
TMUX
Once you have ssh’d in you can run tmux to run a python script that will keep running once you exit the terminal.
Notes mentioning this note
There are no notes linking to this note.