learning how to do ssh
lookang@l-wee-ll412 ~ % cd ./.ssh/
lookang@l-wee-ll412 .ssh % ls
known_hosts
lookang@l-wee-ll412 .ssh % cp /Users/lookang/Public/workspace/export/id_rsa .
lookang@l-wee-ll412 .ssh % ls
id_rsa known_hosts
lookang@l-wee-ll412 .ssh % chmod 600 id_rsa
lookang@l-wee-ll412 .ssh % eval "$(ssh-agent -s)"
Agent pid 4520
lookang@l-wee-ll412 .ssh % ssh-add ~/.ssh/id_rsa
Identity added: /Users/lookang/.ssh/id_rsa (/Users/lookang/.ssh/id_rsa)
lookang@l-wee-ll412 .ssh % ssh ubuntu@54.169.196.68
The authenticity of host '54.169.196.68 (54.169.196.68)' can't be established.
ED25519 key fingerprint is SHA256:
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '54.169.196.68' (ED25519) to the list of known hosts.
Welcome to Ubuntu 24.04 LTS (GNU/Linux 6.8.0-1009-aws x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro
System information as of Thu Jul 4 05:24:19 UTC 2024
System load: 0.0 Processes: 121
Usage of /: 3.8% of 95.82GB Users logged in: 0
Memory usage: 10% IPv4 address for enX0: 172.31.17.115
Swap usage: 0%
* Ubuntu Pro delivers the most comprehensive open source security and
compliance features.
https://ubuntu.com/aws/pro
Expanded Security Maintenance for Applications is not enabled.
0 updates can be applied immediately.
Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status
Last login: Wed Jul 3 17:52:02 2024 from 88.20.0.173
ubuntu@ip-172-31-17-115:~$ ls
HOWTO certificate.zerossl.zip id_rsa webejsopenserver webejsopenserver.tgz
ubuntu@ip-172-31-17-115:~$ cd webejsopenserver/
ubuntu@ip-172-31-17-115:~/webejsopenserver$ ls
Dockerfile certificates documents machine.key openserver
Pipfile csr.conf locale machine.key.bak requirements.txt
Pipfile.lock docker-compose.yml machine.crt manage.py workspace
README.md docker-compose.yml.bak machine.crt.bak old_code
ubuntu@ip-172-31-17-115:~/webejsopenserver$ cd workspace/
__pycache__/ core/ ejs/ migrations/ static/ templates/ utils/
ubuntu@ip-172-31-17-115:~/webejsopenserver$ cd workspace/static/
assets/ js/ js-0.9/ model_elements/ sessions/
ubuntu@ip-172-31-17-115:~/webejsopenserver$ cd workspace/templates/
ubuntu@ip-172-31-17-115:~/webejsopenserver/workspace/templates$ ls
WebEJS.html html_fragments login.html property_editors
ubuntu@ip-172-31-17-115:~/webejsopenserver/workspace/templates$ nano WebEJS.html
ubuntu@ip-172-31-17-115:~/webejsopenserver/workspace/templates$ nano login.html
ubuntu@ip-172-31-17-115:~/webejsopenserver/workspace/templates$ cd ../
ubuntu@ip-172-31-17-115:~/webejsopenserver/workspace$ cd ..
ubuntu@ip-172-31-17-115:~/webejsopenserver$ nano docker-compose.yml
ubuntu@ip-172-31-17-115:~/webejsopenserver$ sudo docker compose down
WARN[0000] The "tx" variable is not set. Defaulting to a blank string.
WARN[0000] /home/ubuntu/webejsopenserver/docker-compose.yml: `version` is obsolete
[+] Running 2/1
✔ Container webejsopenserver-webejs_openserver-1 Removed 0.4s
✔ Network webejsopenserver_default Removed 0.1s
ubuntu@ip-172-31-17-115:~/webejsopenserver$ sudo docker compose up -d
WARN[0000] The "tx" variable is not set. Defaulting to a blank string.
WARN[0000] /home/ubuntu/webejsopenserver/docker-compose.yml: `version` is obsolete
[+] Running 2/2
✔ Network webejsopenserver_default Created 0.1s
✔ Container webejsopenserver-webejs_openserver-1 Started 0.4s
ubuntu@ip-172-31-17-115:~/webejsopenserver$ cd workspace/templates/
ubuntu@ip-172-31-17-115:~/webejsopenserver/workspace/templates$ ls
WebEJS.html html_fragments login.html property_editors
ubuntu@ip-172-31-17-115:~/webejsopenserver/workspace/templates$ cd ,.
-bash: cd: ,.: No such file or directory
ubuntu@ip-172-31-17-115:~/webejsopenserver/workspace/templates$ cd ,,
-bash: cd: ,,: No such file or directory
ubuntu@ip-172-31-17-115:~/webejsopenserver/workspace/templates$ cd ..
ubuntu@ip-172-31-17-115:~/webejsopenserver/workspace$ cd ..
ubuntu@ip-172-31-17-115:~/webejsopenserver$ nano docker-compose.yml
ubuntu@ip-172-31-17-115:~/webejsopenserver$ cd workspace/templates/
ubuntu@ip-172-31-17-115:~/webejsopenserver/workspace/templates$ ls
WebEJS.html html_fragments login.html property_editors
ubuntu@ip-172-31-17-115:~/webejsopenserver/workspace/templates$ grep -r "Try one" .
ubuntu@ip-172-31-17-115:~/webejsopenserver/workspace/templates$ cd ..
ubuntu@ip-172-31-17-115:~/webejsopenserver/workspace$ cd ..
ubuntu@ip-172-31-17-115:~/webejsopenserver$ grep -r "Try one" *
ubuntu@ip-172-31-17-115:~/webejsopenserver$ grep -r "try one" *
workspace/templates/login.html: <h6 class="mb-3">Or try one of these examples:</h6>
workspace/static/index_old.html: <!--h6 class="mb-3">You can also try one of these examples:</h6>
ubuntu@ip-172-31-17-115:~/webejsopenserver$ cd workspace/templates/
ubuntu@ip-172-31-17-115:~/webejsopenserver/workspace/templates$ nano login.html
ubuntu@ip-172-31-17-115:~/webejsopenserver/workspace/templates$
No comments:
Post a Comment