---
title: "Discussion on \"Enable Password Authentication in AWS EC2 Instance\" | Hashnode"
description: "Discussion on \"Enable Password Authentication in AWS EC2 Instance\". Password authentication is disabled by default in aws ec2 instance. The only way to access your server is by using ssh with  -i flag and followed by private key attached to the server.\nHowever, there are scenarios when you may need to access the serv..."
url: "https://hashnode.com/posts/enable-password-authentication-in-aws-ec2-instance/628268c983e2720b553c5104"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Enable Password Authentication in AWS EC2 Instance](https://blog.nielvid.com/enable-password-authentication-in-aws-ec2-instance?utm_source=hashnode&utm_medium=feed)

Password authentication is disabled by default in aws ec2 instance. The only way to access your server is by using ssh with -i flag and followed by private key attached to the server. However, there are scenarios when you may need to access the serv...

May 16, 2022 · 2 min read · blog.nielvid.com  
Read the article

-   [#ec2](https://hashnode.com/tag/ec2)
-   [#ssh](https://hashnode.com/tag/ssh)
-   [#aws](https://hashnode.com/tag/aws)

## Written by

[Godson Chinonyerem](https://hashnode.com/@nielvid)

@nielvid

  
[View profile](https://hashnode.com/@nielvid)

## Responses 1

Markdown supported · ⌘↵ to post

[Keshav Malik](https://hashnode.com/@theinfosecguy)

[May 17, 2022](https://hashnode.com/posts/enable-password-authentication-in-aws-ec2-instance/628268c983e2720b553c5104/comment/628339be83e2720b553c637e)

Great post! You can enable Password Auth on GCP as well using the same steps. 🚀

[Godson Chinonyerem](https://hashnode.com/@nielvid)

[May 17, 2022](https://hashnode.com/posts/enable-password-authentication-in-aws-ec2-instance/628268c983e2720b553c5104/comment/628339be83e2720b553c637e#reply-628353b2504da209d8557527)

Yes you can!
