1. Generate a New SSH Key
Create a new SSH key using the ed25519
algorithm to securely identify yourself:
ssh-keygen -t ed25519 -C "brisamedina05@gmail.com"
2. Start the SSH Agent
Activate the SSH agent to manage your SSH keys:
eval "$(ssh-agent -s)"
3. Add Your SSH Key to the Agent
Add the newly generated SSH key to the SSH agent for authentication:
ssh-add ~/.ssh/id_ed25519
4. Copy the Public SSH Key
Retrieve your public SSH key, which you'll need to add to your GitHub account:
cat ~/.ssh/id_ed25519.pub
5. Set Up the Project Directory
Create a directory for your project and navigate into it to organize your files:
mkdir project-directory
cd project-directory
6. Clone the Repository
Clone the Git repository into your project directory:
git clone git@github.com:your-organization/your-repository.git
7. Install Project Dependencies
Navigate to the cloned repository's folder and install all necessary dependencies:
cd your-repository
npm install
8. Run the Project
Start your project in development mode using the appropriate command:
npm run dev
9. Install Node.js (If Needed)
If Node.js isn't already installed, you can install it using:
sudo apt install nodejs
10. Install Node Version Manager (NVM)
If you prefer to manage Node.js versions with NVM, install it using:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
11. Manage Dependencies
If necessary, clean up old dependencies and reinstall them to ensure everything is up to date:
rm -rf node_modules
npm install
12. Run the Project Again
Finally, run your project again to ensure everything is working:
npm run dev
These steps guide you through setting up your project environment after configuring SSH access.