커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
서버세팅하기
undefined주차
북마크
장*민
댓글
61
추천
0
조회수
116
조회수
116
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


잘 못하고 있는거 같은데 혹시 지금 문제가 있는 걸까요?



Last login: Mon Oct 10 20:05:37 on console

admin@adminui-MacBookPro ~ % sudo chmod 400/Users/admin/Downloads/sparta_wab.pem

Password:

usage:   chmod [-fhv] [-R [-H | -L | -P]] [-a | +a | =a [i][# [ n]]] mode|entry file ...

admin@adminui-MacBookPro ~ % ssh -i//Users/admin/Downloads/sparta_wab.pem ubuntu@3.34.140.43

The authenticity of host '3.34.140.43 (3.34.140.43)' can't be established.

ED25519 key fingerprint is SHA256:UGBT+ah9xu4xkUmv7ELPiIWe89+MNrnLb0I/rlRZ644.

This key is not known by any other names

Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

Warning: Permanently added '3.34.140.43' (ED25519) to the list of known hosts.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@        WARNING: UNPROTECTED PRIVATE KEY FILE!         @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Permissions 0644 for '//Users/admin/Downloads/sparta_wab.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/admin/Downloads/sparta_wab.pem": bad permissions

ubuntu@3.34.140.43: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

admin@adminui-MacBookPro ~ % mkdir sparta

admin@adminui-MacBookPro ~ % ls

Applications      Documents      Movies         Public

Creative Cloud Files   Downloads      Music         sparta

Desktop         Library         Pictures

admin@adminui-MacBookPro ~ % cd sparta

admin@adminui-MacBookPro sparta % ls

admin@adminui-MacBookPro sparta % cd ..

admin@adminui-MacBookPro ~ %

admin@adminui-MacBookPro ~ % # python3 -> python

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10


# pip3 -> pip

sudo apt-get update

sudo apt-get install -y python3-pip

sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1


# port forwarding

sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 5000

zsh: command not found: #

Password:

sudo: update-alternatives: command not found

zsh: command not found: #

sudo: apt-get: command not found

sudo: apt-get: command not found

sudo: update-alternatives: command not found

zsh: command not found: #

sudo: iptables: command not found

admin@adminui-MacBookPro ~ % sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10


sudo: update-alternatives: command not found

admin@adminui-MacBookPro ~ % sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10

sudo: update-alternatives: command not found

admin@adminui-MacBookPro ~ % sudo chmod 400/Users/admin/Downloads/sparta_wab.pem

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 ...

admin@adminui-MacBookPro ~ % ssh -i//Users/admin/Downloads/sparta_wab.pem ubuntu@3.34.140.43

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@        WARNING: UNPROTECTED PRIVATE KEY FILE!         @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Permissions 0644 for '//Users/admin/Downloads/sparta_wab.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/admin/Downloads/sparta_wab.pem": bad permissions

ubuntu@3.34.140.43: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

admin@adminui-MacBookPro ~ % cd ...

cd: no such file or directory: ...

admin@adminui-MacBookPro ~ % ls

Applications      Documents      Movies         Public         sparta

Creative Cloud Files   Downloads      Music         pip

Desktop         Library         Pictures      python

admin@adminui-MacBookPro ~ % sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10

sudo: update-alternatives: command not found

admin@adminui-MacBookPro ~ % sudo apt-get update

sudo: apt-get: command not found

admin@adminui-MacBookPro ~ %



보고 계신 화면 전체를 캡처해 주시면, 튜터님들이 빠르게 상황을 이해할 수 있어요.




작성한 코드 및 에러 메세지

오류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.

Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.

Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴