Skip to content

How to ssh into aws ec2 #39

Answered by emerisly
vivianc2 asked this question in Q&A
Discussion options

You must be logged in to vote

1. Just ssh (easy but less convenient for long-term usage)

Ask Emerald, Felix, or Zander for the certificate file "mathsearch-backend.pem".
Do not give this file to others or upload it GitHub.
Put pem file under the dir you want to work in, cd into that dir.
Change pem file security by running chmod 600 mathsearch-backend.pem.
Now we are ready to ssh into ec2, run ssh -i "mathsearch-backend.pem" [email protected].

2. Recommend method with vscode

cd into .ssh dir with cd ~/.ssh command.
Put pem file under this dir and run chmod 600 mathsearch-backend.pem.
Edit file ~/.ssh/config by adding below few lines. This adds ssh permission so your vscode can recognize.

#…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vivianc2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants