THE IT IDEAS

  • Home

Tuesday, 31 March 2015

Create new user in AWS EC2

 THE IT IDEAS     17:02     EC2   

Create new user in AWS EC2

First of all user in your Instance
#sudo su
#adduser theitideas   <-- keep password with you to fire command with sudo

Login with new user
#su theitideas

Generate private and public key for new user.
#ssh-keygen -t rsa
#cd /home/theitideas/.ssh/
#touch authorized_keys
#cat id_rsa.pub > authorized_keys

#exit
Make entry to your to access command with sudo in visudo file
#visudo  <-- once this file open find "Allow members of group sudo to execute any command" and enter below mentioned line in that file then save and close.

theitideas ALL=(ALL:ALL) ALL

Provide below permissios 

#chmod go-w /home/theitideas
#chmod 700 /home/theitideas/.ssh
#chmod 600 /home/theitideas/.ssh/authorized_keys

Now copy or download private (id_rsa)key from server to your local machine to login.
#cat id_rsa

All done now you can login with your private key (id_rsa) like below from your machine.

#ssh -i id_rsa theitideas@12.34.45.56

Hurray !!!! :)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook

Related Posts:

  • Create new user in AWS EC2 Create new user in AWS EC2 First of all user in your Instance #sudo su #adduser theitideas   <-- keep password with you to fire command… Read More
  • How to Mount AWS S3 Bucket into AWS EC2 Instance (Linux) First need to create access key from AWS Console Under Security Credentials, create AWS Access key ans Security keyCreate file /etc/passwd-s3fs #touc… Read More
  • How to Choose AWS EC2 Instance Important ConceptsLet's start with some concepts, just to make sure that we are all on the same page. An Amazon Machine Image (AMI) is a tem… Read More
Newer Post Older Post Home

Like Us !!!

Recent Posts

Blog Archive

  • ►  2016 (1)
    • ►  April (1)
  • ▼  2015 (12)
    • ►  August (1)
    • ►  May (2)
    • ►  April (8)
    • ▼  March (1)
      • Create new user in AWS EC2
  • ►  2014 (23)
    • ►  December (8)
    • ►  November (12)
    • ►  April (2)
    • ►  March (1)
  • ►  2013 (7)
    • ►  December (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (3)
  • ►  2012 (15)
    • ►  December (6)
    • ►  November (9)

Categories

apache2 EC2 error mysql php ubuntu aws aws rds browser github installation linux mount s3 AWS Bucket CentOS Computer DocumentRoot change How to Benchmarking Webserver IP LAMP Restart Computer SCP command SQL SERVER XRDP administrator amazon rds backup basic commands chat command line disable download drupal ec2.chroot environment external storage device fstab functions geoip gmail google home page iis instance internet java mod rewrite mongodb multiple login network password one password php5 php5-fpm php7 private browsing python repair filesystem repo reset password rhel sa password same computer script sftp share skype ssh tomcat ubuntu 16.04 ubuntu16 visudo windows 8 youtube
JobsMagBlogJobsMag.InThingsGuide

Popular Posts

  • How to Use Python ‘SimpleHTTPServer’ to Serve Files Instantly
    How to Use Python ‘SimpleHTTPServer’ to Serve Files Instantly first check is python available or not. #python –V If command return version...
  • How to Install PHP 7.0, Apache 2.4.18, & MySQL 5.7 on Ubuntu 16.04 LTS
    Update your repo list with below command $ sudo apt-get update -- > Install Apache 2.4.18 $ sudo apt-get install apac...
  • How to setup Network Configuration in Ubuntu Server 14.04
    Open Network Configuration file. #nano /etc/network/interface Then Add below mentioned lines and make changes as per your need. auto eth0 i...

Copyright © 2025 THE IT IDEAS | Powered by Blogger