• Arun Kumar

Connect EC2 Server Without Keypair

You can enable keyless access on EC2 server that will allow you to connect to the server with username and password. Once you enable keyless access, you need not provide key file location under putty to access the server.

Just give server hostname (or public ip address) and connect via putty.

Note: enabling keyless access is not at all recommended and do not use it for production servers.

Enable password auth

You must first enable the server to ask for user passwords under /etc/ssh/sshd_config

vi /etc/ssh/sshd_config
change PasswordAuthentication from NO to YES

Restart the network services

systemctl restart sshd.service

Test keyless connectivity

Open putty, give the EC2 server hostname and click on connect. Make sure you are not giving the location of key file under putty.

You should be able to connect to the server by giving username and password!


Recent Posts

See All

Give Oracle user permissions to connect remotely

On a aws server, you need to connect via EC2-USER and then perform switch user to connect Oracle user. Use below commands to allow Oracle user connect the aws EC2 server remotely Connect EC2 server Co

Mount EFS on EC2 Instance

You might have created an Elastic File System (EFS) and now would like to mount it on EC2 instance. Get EFS link Check the EFS details and you should get a link which looks like below fs-06b8137f.efs.

How to Setup SSH on EC2 Instances

I have created two EC2 instances on AWS. I created a key pair for each of them. I downloaded the .pem private keys and converted them into .ppk format. I can connect to each of my ec2 instances using

  • Facebook
  • Twitter
  • YouTube
  • Instagram

© 2020 by DBA Genesis