echo "# github-action-nodejs" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/xide-projext/github-action-nodejs.git
git push -u origin main
chmod 400 ../aws/yangjo2023.pem
ssh -i "../aws/yangjo2023.pem" [email protected]
/mnt/c/developments
├── aws
│ └── yangjo2023.pem
├── github-action-nodejs (현재 폴더)
│ ├── README.md
│ └── hsw.md
pwd
/mnt/c/developments/github-action-nodejs
touch hongsw.md
scp -i "../aws/yangjo2023.pem" hongsw.md [email protected]:/home/ec2-user
touch $(GITHUB_ID).md
scp -i "../aws/yangjo2023.pem" $(GITHUB_ID).md [email protected]:/home/ec2-user
mkdir hongsw_files
touch hongsw_files/hongsw_file1.md
touch hongsw_files/hongsw_file2.md
tar -cvf hongsw_files.tar hongsw_files
scp -i "../aws/yangjo2023.pem" hongsw_files.tar [email protected]:/home/ec2-user
ssh -i "../aws/yangjo2023.pem" [email protected] "tar -xvf hongsw_files.tar"