Connecting to AWS VM from Windows 10 using Linux Bash Shell

Posted: April 18, 2017 in Amazon Web Services (AWS)

Open the Settings app and head to Update & Security > For Developers

1.png

2.png

Open the Control Panel, click Programs-Turn Windows Features On or Off under Programs and Features. Enable the Windows Subsystem for Linux (Beta)-click OK

4

Reboot computer

In search box type bash

5

Type Y

6

You’ll be asked for username/password

Bash on Ubuntu on Windows shortcut will be created

1

Connecting to Amazon VM

chmod 400 /mnt/c/Users/dragan/Desktop/mykeys.pem  #(mykeys.pem are private keys downloaded to my Desktop from AWS during creating VM)
ssh ec2-user@52.210.96.140 -i /mnt/c/Users/dragan/Desktop/mykeys.pem

 

1.png

Advertisements
Comments
  1. Jeremy Stones says:

    This doesn’t work at all. I always get a ‘WARNING: UNPROTECTED PRIVATE KEY FILE!’ doing it this way. Whenever you access the key from another drive (/mnt/c/…) Amazon won’t recognize your private key because it’s accessible by others. The permissions on the file will automatically revert to “Permissions 0555”.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s