The Systems People Inc.

The Systems People Inc.

Customer Focused Service since 1993

Opening AWS linux instance for user/password login

Once the AWS Oracle instance was created, by default the root login using PKI is available.

You would need to add userid/password login  (not recommended for security reasons) for other administrative users. This may be desirable in development ot testing environment.

  1. Login as root (using PKI).
  2. Modify sshd_config under /etc/ssh/ directory, to allow passwordlogin.
  3. restart sshd.

These steps will allow userid/password based login to AWS instance.

login as: root
Authenticating with public key "imported-openssh-key"
Last login: Tue Apr 24 18:13:28 2012 from 98.235.186.132
root@domU-12-31-39-03-BD-92:[/root]
$ cd /etc/ssh
root@domU-12-31-39-03-BD-92:[/etc/ssh]
$ ls
moduli            ssh_host_dsa_key.pub  ssh_host_rsa_key
ssh_config        ssh_host_key          ssh_host_rsa_key.pub
ssh_host_dsa_key  ssh_host_key.pub      sshd_config
root@domU-12-31-39-03-BD-92:[/etc/ssh]
$ vi sshd_config

Following parameter was changed (the default is NO)

# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
# Changed to no per AWS
PasswordAuthentication yes  # <<<<<<<<<< CHANGED

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
ChallengeResponseAuthentication no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

At this point, we'll use Oracle (linux account) to login using userid/password.

login as: oracle
oracle@ec2-107-20-86-85.compute-1.amazonaws.com's password:
Last login: Mon Apr 30 16:59:02 2012 from 98.235.186.132
oracle@domU-12-31-39-03-BD-92:[/home/oracle]
$

The password is the one that was created when the instance was created. 

 Blog Stats

  • Total posts(18)
  • Total comments(0)

Forgot your password?