1
C:\Users\luojun>ssh usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file] [-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]] destination [command] C:\Users\luojun>ssh -i "E:\Documents\amazonaws\luojun.pem" ec2-user@ec2-71-136-96-179.cn-north-1.compute.amazonaws.com.cn The authenticity of host 'ec2-71-136-96-179.cn-north-1.compute.amazonaws.com.cn (71.136.96.179)' can't be established. ECDSA key fingerprint is SHA256:TOZz0a1+fxBjrZ9hQalVEj6TLIZAS98j8fBpqRwao08. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'ec2-71-136-96-179.cn-north-1.compute.amazonaws.com.cn,71.136.96.179' (ECDSA) to the list of known hosts. , #_ ~\_ ####_ Amazon Linux 2023 ~~ \_#####\ ~~ \###| ~~ \#/ ___ https://aws.amazon.com/linux/amazon-linux-2023 ~~ V~' '-> ~~~ / ~~._. _/ _/ _/ _/m/' [ec2-user@ip-172-31-2-206 ~]$ cd / [ec2-user@ip-172-31-2-206 /]$ ls bin boot dev etc home lib lib64 local media mnt opt proc root run sbin srv sys tmp usr var [ec2-user@ip-172-31-2-206 /]$ cd usr [ec2-user@ip-172-31-2-206 usr]$ cd local [ec2-user@ip-172-31-2-206 local]$ ls bin etc games include lib lib64 libexec sbin share src [ec2-user@ip-172-31-2-206 local]$ wget https://nodejs.org/dist/v18.15.0/node-v18.15.0-linux-x64.tar.xz --2023-03-21 07:05:51-- https://nodejs.org/dist/v18.15.0/node-v18.15.0-linux-x64.tar.xz Resolving nodejs.org (nodejs.org)... 104.20.23.46, 104.20.22.46, 2606:4700:10::6814:162e, ... Connecting to nodejs.org (nodejs.org)|104.20.23.46|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 23637576 (23M) [application/x-xz] node-v18.15.0-linux-x64.tar.xz: Permission denied Cannot write to ‘node-v18.15.0-linux-x64.tar.xz’ (Permission denied). [ec2-user@ip-172-31-2-206 local]$ sudo chmod -R 777 /usr/local [ec2-user@ip-172-31-2-206 local]$ wget https://nodejs.org/dist/v18.15.0/node-v18.15.0-linux-x64.tar.xz --2023-03-21 07:08:23-- https://nodejs.org/dist/v18.15.0/node-v18.15.0-linux-x64.tar.xz Resolving nodejs.org (nodejs.org)... 104.20.22.46, 104.20.23.46, 2606:4700:10::6814:172e, ... Connecting to nodejs.org (nodejs.org)|104.20.22.46|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 23637576 (23M) [application/x-xz] Saving to: ‘node-v18.15.0-linux-x64.tar.xz’ node-v18.15.0-linux-x64.tar.xz 41%[========================================>