amazon web services - Accessing AWS instance through IAM role via Putty -


i new aws console.

  1. i have created instance in ubuntu server , key pair
  2. i have created iam role (developer , administrator)

i can able login using iam role in aws console. , using putty able login localhost: ubuntu@public dns value.. once logged in want access aws instance using iam role (developer , administrator) in putty.but not logging in.

is possible iam role used in aws instance.

using username "ubuntu". authenticating public key "imported-openssh-key" welcome ubuntu 14.04.1 lts (gnu/linux 3.13.0-36-generic x86_64)   * documentation:  https://help.ubuntu.com/    system information of mon dec  1 05:36:34 utc 2014    system load:  0.0               processes:           97   usage of /:   12.1% of 7.74gb   users logged in:     0   memory usage: 7%                ip address eth0: 172.31.23.230   swap usage:   0%    graph data , manage system at:     https://landscape.canonical.com/    cloud support ubuntu advantage cloud guest:     http://www.ubuntu.com/business/services/cloud  57 packages can updated. 31 updates security updates.  root@ip-172-31-23-230:/home/ubuntu# login ip-172-31-23-230 login: b00017 password:  login incorrect ip-172-31-23-230 login: root@ip-172-31-23-230:/home/ubuntu# login ip-172-31-23-230 login: b00017 password:  login incorrect 

short answer : no.

iam roles , ssh key pairs 2 different mechanisms apply @ different levels, different users , different type of authentications.

iam roles containers permissions on aws api. role describes set of permissions on aws services, such ec2, s3, dynamodb etc ... entity assume role (a person or ec2 instance example) temporary receive authorisation perform actions described in role's permissions.

you can use iam roles control can access aws api (start machine, create load balancer, create network etc ...) iam roles not control can connect operating systems.

to control access @ operating systems level, (on linux) aws requires generate pair of cryptographic rsa keys , upload public key on aws. when linux instance starts, process install copy of public key in (operating system) user directory (~/.ssh/authorized_keys). username operating system specific (ubuntu on ubuntu, ec2-user on amazon linux , redhat)

iam not involved when managing users @ operating system level or permissions connect operating systems.

more details roles available http://docs.aws.amazon.com/iam/latest/userguide/workingwithroles.html


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -