
안녕하세요
5-9 서버세팅중에 오류가 발생하였습니다.
저는 Mac을 사용중이고, AWS 인스턴스 생성시 Ubuntu로 시작하는 유형이 없어서 Amazon으로 시작하는 유형으로 진행하였습니다.
5-8 세팅때는 되었다고 생각했는데, 오류가 나오는것 같네요
Last login: Wed Sep 14 08:42:20 on ttys000
leehyun@hyunsui-MacBookAir ~ % sudo chmod 400/Users/leehyun/Desktop/Youknowfa_mykey.pem
Password:
Sorry, try again.
Password:
usage: chmod [-fhv] [-R [-H | -L | -P]] [-a | +a | =a [i][# [ n]]] mode|entry file ...
chmod [-fhv] [-R [-H | -L | -P]] [-E | -C | -N | -i | -I] file ...
leehyun@hyunsui-MacBookAir ~ % ssh -i /Users/leehyun/Desktop/Youknowfa_mykey.pem ubuntu@172.31.35.76
ssh -i ssh: connect to host 172.31.35.76 port 22: Operation timed out
leehyun@hyunsui-MacBookAir ~ % ssh -i /Users/leehyun/Desktop/Youknowfa_mykey.pem Amazon@43.200.181.131
The authenticity of host '43.200.181.131 (43.200.181.131)' can't be established.
ED25519 key fingerprint is SHA256:IbtIYvQ/WE79z4Y9R3McJESTsKHGMacD1IfH24NQlq0.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '43.200.181.131' (ED25519) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/Users/leehyun/Desktop/Youknowfa_mykey.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 "/Users/leehyun/Desktop/Youknowfa_mykey.pem": bad permissions
Amazon@43.200.181.131: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
leehyun@hyunsui-MacBookAir ~ % mkdir sparta
leehyun@hyunsui-MacBookAir ~ % ls
Applications Library Public
Desktop Movies sparta
Documents Music 코딩test
Downloads Pictures
leehyun@hyunsui-MacBookAir ~ % sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
Password:
sudo: update-alternatives: command not found
leehyun@hyunsui-MacBookAir ~ % sudo apt-get update
sudo: apt-get: command not found
leehyun@hyunsui-MacBookAir ~ % sudo apt-get install -y python3-pip
sudo: apt-get: command not found
leehyun@hyunsui-MacBookAir ~ %
