상태: 43.201.63.159에 연결...
응답: fzSftp started, protocol_version=10
명령: keyfile "C:\Users\류민주\Desktop\b_newkey.pem"
명령: open "ubuntu@43.201.63.159" 22
명령: 새 호스트 키 신뢰: 한번만
상태: Using username "ubuntu".
상태: Server refused our key
오류: FATAL ERROR: No supported authentication methods available (server sent: publickey)
오류: 서버에 연결하지 못함
2.bit 정상등록됨
$ ssh -i /c/Users/류민주/Desktop/b_newkey.pem ubuntu@43.201.63.159
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-1019-aws x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Sat Oct 1 02:57:27 UTC 2022
System load: 0.0 Processes: 100
Usage of /: 26.0% of 7.57GB Users logged in: 0
Memory usage: 25% IPv4 address for eth0: 172.31.4.142
Swap usage: 0%
44 updates can be applied immediately.
21 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable
Last login: Sat Oct 1 02:41:53 2022 from 106.250.206.79
ubuntu@ip-172-31-4-142:~$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
ubuntu@ip-172-31-4-142:~$ sudo apt-get update
Hit:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... Done
ubuntu@ip-172-31-4-142:~$ sudo apt-get install -y python3-pip
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-pip is already the newest version (22.0.2+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
ubuntu@ip-172-31-4-142:~$ sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
update-alternatives: using /usr/bin/pip3 to provide /usr/bin/pip (pip) in auto mode
update-alternatives: warning: not replacing /usr/bin/pip with a link
ubuntu@ip-172-31-4-142:~$ sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 5000
ubuntu@ip-172-31-4-142:~$