Connect to your EC2 Linux instance
- Open up Terminal
2. cd to the directory that has your .pem
file. ls
so you can copy and verify the name and then put the name of your .pem
file in the next command.
cd Downloads
ls
chmod 400 Linuxfirst.pem
3. Now connect your instance in AWS.
4. You will see this screen popup.
In the terminal, type (piece this together before tapping enter)
ssh -i
Then copy the name of your pem file in your directory and put it in quotes.
ssh -i "yours.pem"
Then copy and paste the address provided in the connect instance window. In this case:
ssh -i "yours.pem" ec2-user@ec2-52-91-76-145.compute-1.amazonaws.com
If your connection is successful you should see:
Terminal GUI
- Open up Terminal
2. Click on Shell then “New Remote Connection.”
3.
4. Now put …
Using Putty
- Install homebrew if not installed
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
You can check if you have it by running
brew help
2. Install Putty
sudo brew install putty
3. Use putty…