-
Notifications
You must be signed in to change notification settings - Fork 5
Creating a VM on the MOC and Accessing It
Elizabeth Slade edited this page May 3, 2020
·
3 revisions
For reference, Link to MOC SSHing instructions.
Please note that these instructions assume the ChRIS VM has already been created on OpenShift and therefore, you just need to share your public key with the person who instantiated the VM.
- Create a key pair
$ cd ~/.ssh
$ ssh-keygen -t rsa -f ~/.ssh/cloud.key -C "label_your_key"
- Note the two keys that are created in your .ssh folder.
cloud.key # private key - don’t share this with anyone, and never upload it anywhere ever
cloud.key.pub # this is your public key
-
Now, share your public key with the person who instantiated the ChRIS VM. In this case, that is Lizzy.
-
Then, Lizzy will add your public key to a text file and secure copy it into the VM.
scp teammates.pub [email protected]:~
- Then, Lizzy will append your public key onto the list of authorized keys.
cat testfile >> ~/.ssh/authorized_keys