반응형
Notice
Recent Posts
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- ActivityResult-API
- Galaxy Watch
- socket-client
- Firebase
- git
- 오즈뷰어
- ozd
- socket.io
- git-push
- firebase-storage
- google-login
- firebase-database
- AWS
- JNI
- Flavors
- Dva
- Android
- OZViewer
- 워치
- BottomSheetDialog
- NoSuchMethodError
- gradle
- mosquitto
- socket-server
- mqtt
- cloud-firestore
- TIZEN
- hung-up
- Java8
- Kotlin
Archives
- Today
- Total
Hyeyeon blog
[AWS] ec2 ubuntu root 비밀번호 로그인 설정 본문
반응형
1. ssh 명령어를 통해 ec2 인스턴스에 접속
ssh -i {.pem 파일 경로} ubuntu@{ec2 퍼블릭 IPv4 주소 혹은 DNS}
2. 비밀번호 설정
sudo passwd root
New password:
Retype new password:
passwd: password updated successfully
2. ssh 설정 변경
vim /etc/ssh/sshd_configPermitRootLogin yesPasswordAuthentication yes
3. ssh 재시작
- 오류 메세지가 발생한다면, sudo sshd -t 명령어로 sshd_config 내용에 이상이 없는지 확인해볼 것
service ssh restart
4. root로 ec2 접속
ssh root@{ec2 퍼블릭 IPv4 주소 혹은 DNS}
root@xxx.xxx.xxx.xxx's password:
root@ip-xxx.xxx.xxx.xxx:~#
728x90
'개발 > etc' 카테고리의 다른 글
[Windows] V2 Credential Provider 적용하기 (0) | 2021.07.15 |
---|---|
[Firebase] Firebase Storage 버킷 만들기 (0) | 2021.05.05 |
[Git] Git Push 오류 해결 방법 (the remote end hung up unexpectedly) (0) | 2020.11.27 |
[MQTT] MQTT Mosquitto 서버 userName, password 설정 (0) | 2020.11.18 |
[Git] this exceeds GitHub's file size limit of 100.00 MB (0) | 2019.03.04 |
Comments