org : https://www.youtube.com/watch?v=4T6wKk_ZWCM
1. Go to Amazon Lightsail
2. Create Instance
3. OS only -> Ubuntu 18.04 LTS
4. $20 > 4TB
4-1. put below user data ( Add launch script )
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config echo "ubuntu:1q2w3e4r" | chpasswd
5. Create Instance
- put this script under "Add launch script"
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config
echo "ubuntu:1q2w3e4r" | chpasswd
service sshd reload
6. Go into the instance and change the network to "All TCP"
7. copy ip of new instane and try to access from browser
http://http://13.231.170.42:4200/
Fail - cannot access
8. Go to "Connect" and "Connect using SSH"
9. run below command one by one
sudo service sshd reload
sudo apt-get -y update
sudo apt-get -y install nodejs npm
sudo npm install -g wetty
sudo curl https://gist.githubusercontent.com/subicura/9058671c16e2abd36533fea2798886b0/raw/e5d249612711b14c9c8f44798dea1368395e86a9/wetty.service -o /lib/systemd/system/wetty.service
sudo systemctl start wetty
sudo systemctl enable wetty
10. Access again with ip : http://http://13.231.170.42:4200/
id : ubuntu - Pw : 1q2w3e4r
No comments:
Post a Comment