- 인스턴스 만들기
1. ssh -i pem 으로 우분투 진입 !
> ssh -i [ key이름 ].pem ubuntu@[ ip주소 ]
> chmod 400 [ key이름 ].pem
.pem 파일의 권한이 too much하다는 뜻으로 chmod 명령을 사용하여 권한을 400으로 수정해주깅
(base) jhj💭 ~/desktop ssh -i djangokey.pem ubuntu@13.209.73.49
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for 'djangokey.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "djangokey.pem": bad permissions
ubuntu@13.209.73.49: Permission denied (publickey).
(base) jhj💭 ~/desktop chmod 400 djangokey.pem
(base) jhj💭 ~/desktop ssh -i djangokey.pem ubuntu@13.209.73.49
Welcome to Ubuntu 22.04 LTS (GNU/Linux 5.15.0-1004-aws x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Tue May 17 03:36:19 UTC 2022
System load: 0.0 Processes: 98
Usage of /: 7.5% of 19.21GB Users logged in: 0
Memory usage: 20% IPv4 address for eth0: 172.31.41.115
Swap usage: 0%
0 updates can be applied immediately.
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@ip-172-31-41-115:~$
블로그 참고
https://wayhome25.github.io/django/2018/03/03/django-deploy-03-ec2/
'Others > Ubuntu and Linux' 카테고리의 다른 글
(Ubuntu) 서버구축 - (3) mysql 설치/Filezilla/ (0) | 2022.05.17 |
---|---|
(Ubuntu) 서버구축 - (2) 서버시간설정 / anaconda설치 / 가상환경설치 (0) | 2022.05.17 |
(Ubuntu) mysql - ERROR Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) / 삭제가 답 (0) | 2022.05.13 |
(Ubuntu) django admin 계정관리 (0) | 2022.05.13 |
(Ubuntu) Django + Gunicon + Nginx 연동하기 (2)-2 지유니콘 (0) | 2022.05.11 |