Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8280187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:34:47+00:00 2026-06-08T09:34:47+00:00

I am using putty to login to my ec2 instance. When i typed root

  • 0

I am using putty to login to my ec2 instance. When i typed root it asked me to login as ec2-user.

Authenticating with public key “imported-openssh-key” Please login as
the ec2-user user rather than root user.

when i did login as ec2-user and tried to run commands like

yum install httpd

it says

Loaded plugins: fastestmirror, priorities, security, update-motd You
need to be root to perform this command.

I am running the instance for the first time. I tried searching through the amazon aws help section and google. Not able to find the solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T09:34:48+00:00Added an answer on June 8, 2026 at 9:34 am

    To switch to a root shell, run the command:

    su
    

    If you want to execute a command as root without switching to a root shell, you can use:

    sudo yum install httpd
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Relevant question: fabric password I configured Putty to login with private-public keys (no password)
When i'm login into my server using putty it log in perfectly but when
I am connecting to remote Unix system using putty and .ppk key file. Now
I've set up a remote repo using rsa private/public keys using putty/plink. I manage
I've read tail -f using PuTTY hangs But please let me ask again. I
I'm using PuTTY to access my BSD file server and I have several terminal
I connect to our Ubuntu production server using PuTTy. I want to reindex a
Background: I was editing a file in vim using putty over ssh. In order
I'm trying to connect and fetching source from a SSH server with using PuTTY,
I am new to Hive, MapReduce and Hadoop. I am using Putty to connect

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.