Login to remote Linux server with private key

Here I’m writing how to access Linux server with private key.

This is really helpful when you setup remote server first time. For example while creating new instance to the ec2 server, it will allow you to download the private key. You can access to the remote server with this private key.

Here is a simple command:

ssh ec2-user@175.341.235.409 -i staging-server.pem

Here

  • ec2-user is the user of remote linux server.
  • 175.341.235.409 is IP address of remote Linux server.
  • staging-server.pem is our private key. We can also give the directory of this file.

While running this command, an permission issue to the private key may occur.

For this use following command:

chmod 600 staging-server.pem

If your SSH key requires a password, enter it when prompted to complete the connection.

0Shares

2 Comments on “Login to remote Linux server with private key”

  1. Hello ,

    I saw your tweets and thought I will check your website. Have to say it looks very good!
    I’m also interested in this topic and have recently started my journey as young entrepreneur.

    I’m also looking for the ways on how to promote my website. I have tried AdSense and Facebok Ads, however it is getting very expensive. Was thinking about starting using analytics. Do you recommend it?
    Can you recommend something what works best for you?

    I also want to improve SEO of my website. Would appreciate, if you can have a quick look at my website and give me an advice what I should improve: http://janzac.com/
    (Recently I have added a new page about FutureNet and the way how users can make money on this social networking portal.)

    I have subscribed to your newsletter. 🙂

    Hope to hear from you soon.

    P.S.
    Maybe I will add link to your website on my website and you will add link to my website on your website? It will improve SEO of our websites, right? What do you think?

    Regards
    Jan Zac

    1. Hi Jan,

      Thank you for your comment.

      I’m tech guy and little bit knowledge on SEO also.

      I also checked your website. And found your website is also build in WordPress. For the better SEO you can installed Yoast SEO Plugin.

      Yes you can use Google Analytics which will help you track your visitors and find the behavior of your targeted audience.

      You can also use my website link to your website.

Leave a Reply

Your email address will not be published. Required fields are marked *

Enter Captcha Here : *

Reload Image