Skip to content

Creating a VM on the MOC and Accessing It

Elizabeth Slade edited this page May 3, 2020 · 3 revisions

Instructions to get access to the ChRIS VM that's on OpenShift

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.

  1. Create a key pair
  $ cd ~/.ssh
  $ ssh-keygen -t rsa -f ~/.ssh/cloud.key -C "label_your_key" 
  1. 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    
  1. Now, share your public key with the person who instantiated the ChRIS VM. In this case, that is Lizzy.

  2. Then, Lizzy will add your public key to a text file and secure copy it into the VM.

  scp teammates.pub [email protected]:~
  1. Then, Lizzy will append your public key onto the list of authorized keys.
  cat testfile >> ~/.ssh/authorized_keys