*** This version of Confluence is for testing only and contains a copy of content from June 29th 2026. No changes will be preserved. ***
Connect to the Server
- Generate EC2 Key Key (skip this step if you have EC2 private SSH key locally)
- ssh into / (open via aws ec2 console) the EC2 ubuntu VM (DIAPER-production-key.pem is in the box folder diaper confidential ask Liz for access), create the new user (if not yet created)
Code Block sudo adduser newuser - switch to the new user
Code Block sudo su - newuser - If you has EC2 key, you can skip this step.
- In the EC2 VM, generate key by using
Code Block ssh-keygen
- Hence, we get id_rsa (private key) & id_rsa.pub (public key)
- Store into the folder in home/accountnumber/.ssh => /home/usernameaccountuser/.ssh/filename
Code Block mv id_rsa.pub authorized_keys
- exit to ubuntu:
Code Block exit - copy Move the private key into ubuntu's home for download (temporary), use 'chmod' to change file's permission if necessary:
Code Block sudo cp /home/newuser/.ssh/id_rsa /home/ubuntu/
- Download id_rsa from to local
Code Block scp root@1.1.1.1:/pwd -i "DIAPER-production-key.pem" ubuntu@ec2-3-239-18-167.compute-1.amazonaws.com:/home/ubuntu/id_rsa ./
- ssh into / (open via aws ec2 console) the EC2 ubuntu VM (DIAPER-production-key.pem is in the box folder diaper confidential ask Liz for access), create the new user (if not yet created)
- Connect to EC2:
Code Block ssh -i <private.key> -L 6445:localhost:6443 username@ssh.diaper-project.com
- -L mean to forward server's port to local, because Kubernetes exposes port 6445, we would like to forward it to localhost:6443.
Username is your NetID. An admin account holder should be able to create the linux account for you.
If permission error
Code Block sudo chmod 600 private.key
- You should see a pop-up looks like this, which means that you have already connected to the server.
...
