简体   繁体   中英

How do I connect to aws ec2 server from chromebook using the secure shell extension?

I am trying to connect to my ec2 instance from my chromebook using the secure shell extension but I keep getting the following error:

Loading NaCl plugin... done. ssh: connect to host (public DNS) port 22: Connection refused NaCl plugin exited with status code 255.

I have been following the steps on this site but with 0 success. http://www.mattburns.co.uk/blog/2012/11/15/connecting-to-ec2-from-chromes-secure-shell-using-only-a-pem-file/

Help please.

If you're doing this on your chromebook, you should have developer mode enabled so that you can enter the console and execute Linux commands. Once developer mode is enabled, enter the console with ctrl+alt+t and then type in shell .

First you'll want to change the permissions of your .pem key. The ssh keygen won't run if the permissions aren't restricted enough.

sudo chmod 400 myKeyPair.pem

Next you'll want to generate your own public key with ssh-keygen like mentioned in the other links.

ssh-keygen -y -f myKeyPair.pem > myKeyPair.pub

After this, you'll want to create a file with no extension and the private key pair inside.

touch myKeyPair

After this, copy the contents of the .pem file to the file with no extension, myKeyPair.

sudo cat myKeyPair.pem > myKeyPair

Next you'll want to open up the secure shell extension, which can be found here .

Enter your connection information for your machine and don't forget to specify the port number. When it comes to importing the key pair, select both the myKeyPair.pub and the myKeyPair files using ctrl .

That's it, you should be connected!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM