Skip to content

roadtocode4u/igcp-2-node-ec2-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EC2 Commands

NVM Installation

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
nvm --version

Node Installation

nvm install --lts
node --version
npm --version

Git SSH Key Generation

ssh-keygen -vvv -t ed25519 -C "your_email@gmail.com"

chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_ed25519
chmod 644 ~/.ssh/id_ed25519.pub

Copy the SSH Key to GitHub

cat ~/.ssh/id_ed25519.pub
nano ~/.ssh/config

Add the following to the config file

Host github.com
    HostName github.com
    User git
    IdentityFile ~/.ssh/id_ed25519
    AddKeysToAgent yes

Start the SSH Agent

eval "$(ssh-agent -s)"

ssh-add ~/.ssh/id_ed25519

Test the SSH Connection

ssh -T github.com

PM2 Installation

npm install pm2 -g

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors