Some of us have had problems with the web shell and getting into the Jetstream portal. These materials will show you how to log in using an SSH key through your local terminal.
Cryptographic keys are a convenient and secure way to authenticate without having to use passwords. They consist of a pair of files called the public and private keys: the public part can be shared with whoever you’d like to authenticate with (in our case, Jetstream!), and the private part is kept “secret” on your machine. Things that are encrypted with the public key can be be decrypted with the private key, but it is computationally intractable (ie, it would take on the order of thousands of years) to determine a private key from a public key. You can read more about it here.
In order to connect to your instance, we need to know its IP address, its unique identifier on the internet. This is listed in your instance details, circled below:
Now, things diverge a little.
terminal
on OS X, or git bash on Windows).cd ~
.ssh
directory with a public private key pair:ls .ssh
And look for 2 files: id_rsa
and id_rsa.pub
ssh-keygen
id_rsa.pub
to your clipboard. (this is your “public key”)Now, when you start a new instance, your public key will be added automatically and you can login without a password.
ssh [username]@[instance-ip-address]
If you have an already running instance that you want to access in this way,
scp ~/.ssh/new_key.pub [username]@[ip-address]:~/.ssh/new_key.pub
cd ~/.ssh
ls -a
to display files. You should see new_key.pub
cat new_key.pub >> authorized_keys
ssh [username]@[instance-ip-address]
If it didn’t work, go to the instance Jetstream page and “Redeploy” your instance, and then retry the ssh
command.
Hopefully should now have access to atmosphere within your local terminal!
For Windows, we need to install a terminal. Here we’ll use mobaxterm.
First, download mobaxterm home edition (portable) and run it.
Fill in your “remote host,” which will be the IP address from earlier. Then select
“specify username” and enter tx160085
.
Copy the downloaded private file onto your primary hard disk (generally C:) and the put in the full path to it.