Let's learn how to connect to an EC2 instance running in AWS from your local machine. Your local machine can be Windows laptop or MacBook laptop.
1. Keys(for e.g., yourkey.pem) already downloaded in your local machine, preferably in Downloads folder.
2. EC2 instance is up and running
3. For windows laptop, you need to install Git by downloading from this URL - https://git-scm.com/downloads. For Apple laptop you need to download iTerm from here.
Steps to connect to your EC2 instance:
1. Go to AWS console.
2. Click on EC2, click on running instances link
3. Select the checkbox of EC2 you would like to connect to.
4. Click on Connect or Action, Connect. Under SSH client.
Copy the url from SSH which looks like below:
For e.g.
ssh -i "mykey.pem" ubuntu@dns_name.compute.amazonaws.com
For e.g.
ssh -i "mykey.pem" ubuntu@dns_name.compute.amazonaws.com
Watch steps in YouTube channel:
Windows Laptop instructions
5. Go to your local machine, Open Git Bash in Windows
5. Go to your local machine, Open Git Bash in Windows
make sure you are in downloads directory where your keys got downloaded. Type the below commands:
type below commands:
pwd
this should tell you which directory you are and then navigate to downloads dir.
Now copy the value from Example in the above screen
ssh -i "mykey.pem" ubuntu@dns_name.compute.amazonaws.com
and then type enter, say yes and enter
Mac Book Laptop or iMac Instructions
Open iTerm window, type the below command to go to downloads directory.
cd downloads
For few Mac laptops, it may add .txt in the end of pem file. in that case you need to remove .txt in the end
pwd
and then execute below command to make sure the keys have only read permissions.
and then execute below command to make sure the keys have only read permissions.
chmod 400 *.pem
6. Paste the url from example highlighted above in step # 4.
ssh -i "mykey.pem" ubuntu@dns_name.compute.amazonaws.com
7. type yes when it is asking to connect.8. now you should be in AWS cloud, screen should show something like this, It means you are successfully connected to EC2 instance running on AWS cloud. It will also show private IP address of your EC2 instance.
The first lab exercise completed
ReplyDeleteVery helpful, thank you.
ReplyDeleteI succeeded. Amazing
ReplyDeleteHi
ReplyDeleteThanks for sharing awesome information.
1. I have an aws ec2 ubuntu instance ,it installed with jenkins master
2. I want to create a slave(local linux machine) machine to jenkins master and copy the latest successful build binaries using shell scripts and then execute the automation script jobs.
Please guide me on the above scenario.help is appreciated
Thanks in advance
Thanks for your response. Could you please use the below url for master/slave. Instead of setting up slave on aws, you can setup on your local machine. https://www.cidevops.com/2017/10/how-to-configure-jenkins-masterslave.html
Deletethank so much for the step by step document. it helped me
ReplyDeletefirst lab is completed
ReplyDeleteFirst lab completed
ReplyDeletefirst lab completed
ReplyDeleteI think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. mining dump truck price
ReplyDeleteOne question...
ReplyDeletehow to connect to your localhost running on windows instance on aws.
eg: http://ec1-2-345-67-89.ap-south-1.compute.amazonaws.com:8069/web
is accessible on aws server.
But not working if selected from local pc
This Lab is so helpful
ReplyDeleteFirst time getting on it and it was highly self explanatory
yozgat
ReplyDeletetunceli
hakkari
zonguldak
adıyaman
EY0T
https://titandijital.com.tr/
ReplyDeletebartın parça eşya taşıma
ısparta parça eşya taşıma
ankara parça eşya taşıma
izmir parça eşya taşıma
CK2
kayseri evden eve nakliyat
ReplyDeleteantalya evden eve nakliyat
izmir evden eve nakliyat
nevÅŸehir evden eve nakliyat
kayseri evden eve nakliyat
VHQS
04120
ReplyDeletehttps://referanskodunedir.com.tr/
C6CA2
ReplyDeletebilecik mobil sohbet et
zonguldak ucretsiz sohbet
tekirdaÄŸ sesli sohbet siteleri
sivas parasız görüntülü sohbet
çanakkale canlı sohbet siteleri
trabzon mobil sohbet
zonguldak telefonda sohbet
rize görüntülü sohbet siteleri ücretsiz
canlı görüntülü sohbet uygulamaları
37C86
ReplyDeleteYoutube BeÄŸeni Hilesi
Kripto Para Nedir
Soundcloud Reposts Hilesi
Bone Coin Hangi Borsada
Tumblr Takipçi Hilesi
Soundcloud Takipçi Satın Al
Facebook Sayfa Beğeni Satın Al
Görüntülü Sohbet
Instagram Takipçi Hilesi
0B1C0
ReplyDeleteLinkedin Takipçi Hilesi
Keep Coin Hangi Borsada
Kripto Para Kazanma
Big Wolf Coin Hangi Borsada
Twitch Ä°zlenme Hilesi
Gate io Borsası Güvenilir mi
Binance Neden Tercih Edilir
Luffy Coin Hangi Borsada
Referans KimliÄŸi Nedir
DB4D2
ReplyDeletedappradar
uniswap
yearn finance
quickswap
sushiswap
layerzero
shapeshift
pudgy penguins
eigenlayer
FB513
ReplyDeleteshapeshift
pancakeswap
eigenlayer
satoshivm
sushiswap
dappradar
thorchain
uniswap
layerzero
7BB0E
ReplyDeletereferans kimliÄŸi nedir
bitcoin giriÅŸ
canlı sohbet siteleri
okex
en düşük komisyonlu kripto borsası
probit
kripto para nereden alınır
bitexen
gate io
D438F
ReplyDeletecanlı şov whatsapp
387A0
ReplyDeletegüvenilir canlı show
3BB8E
ReplyDeletegörüntülü show
7661F
ReplyDeleteücretli show
D4640
ReplyDeletewhatsapp görüntülü şov
21B9B353B3
ReplyDeletedegra
görüntülü şov
bufalo çikolata
whatsapp görüntülü show güvenilir
fx15
telegram görüntülü şov
lady era
görüntülü show
cam ÅŸov
04371EBFF3
ReplyDeletefx15
skype show
kaldırıcı
telegram görüntülü şov
görüntülü şov whatsapp numarası
sildegra
kamagra
bufalo içecek
performans arttırıcı
21D0FC6A4A
ReplyDeletebufalo çikolata
fx15
lifta
ücretli show
novagra
cialis
themra macun
vega
whatsapp görüntülü show güvenilir
FA7717222D
ReplyDeleteyoutube ucuz beğeni satın al