Configuring ssh and Git for macOS
The student server was recently moved to a new address ddfullstack.cloud the site will look different than what is in the videos, and the process has changed slightly. Steps on how to proceed are listed below the video.
Important Links
Several important links are mentioned in the video. They are:
- Nodejs: https://nodejs.org/en/
- GitHub: https://github.com/
- Add SSH Key: https://ddc-web-student.cnm.edu/
Commands
Several important commands are mentioned in the video. They are:
Installing Git and Xcode
Command to install git and xcode command line toolsxcode-select --install
SSH Key and Config
Generate an ssh ed25519 Keyssh-keygen -t ed25519
The screencast mentions a command to download SSH configuration. The command is: curl -o ~/.ssh/config https://raw.githubusercontent.com/Deep-Dive-Coding-Fullstack-Licensing/ssh-config/main/config
Connecting to the student server with ssh
The SSH command to connect is:ssh USERNAME@ddc-web-student.cnm.edu
where USERNAME is your CNM username.
Configuring git
git config --global user.email[email protected]git config --global user.name"Your Name"ssh [email protected]
GitHub
GitHub is a site that will be the staging area for all the code you write in this class, and when you leave this class. Think of it as a living, expanding professional portfolio of code you have written. The main idea of using GitHub is twofold:
- To collaborate with your teammates during class and be an effective group member
- To have an easily accessible center for all your work to share with future employers
The video will walk you through signing up for a GitHub account. Since this will be a professional account, it is important you use a professional username. Make sure the username is something you'll have no shame in sharing with future employers. Your first and last name (or a slight variation) is recommended.
Student Server
We have recently moved the student server to a new domain outside of CNM's network. Because of this, you will instead log in using your GitHub account instead of your CNM credentials. The website also looks a little different, but the core steps are the same.
Adding your SSH Key
- Go to https://ddfullstack.cloud
- Sign in using Github
- Wait for your account to be approved
- You may need to refresh the page
- Click on the Manage your SSH Key Button
- Copy your public key again if needed:
- in the terminal
cat ~/.ssh/id_ed25519.pub
- Paste your key and click Add SSH key
Test the Connection
- In the terminal type
ssh [email protected]- Replace
yourusernamewith your system username displayed in the landing page and email sent when your invite was approved
- Replace
- If asked about authenticity, type
yes- You should connect without being asked for a password