Linux

Logging into an AWS EC2 server with a password

AWS ec2 servers block ssh access with a password by default. Let’s edit the file below to allow it.

Done on centos 6.5

1
2
# 루트계정에 패스워드 지정
passwd root
1
2
3
4
5
6
7
8
sudo vi /etc/ssh/sshd_config

# 아래 두개 옵션을 yes로 하고 저장후 닫기 
PermitRootLogin yes
PasswordAuthentication yes

# sshd 재시작 
service sshd restart