RUVIDEO
Поделитесь видео 🙏

How to create a GitHub account and setup local machine | SSH key tutorial

📁 Лайфстайл 👁️ 16 📅 04.12.2023

Hey folks, welcome back to my channel. If you are new here, my name is Valentin and I am a Software Quality Assurance Engineer from Berlin. Today I am going to help you make your first step as a Software Engineer. We will create an account on Github and set up your local machine.

#github #tutorial #sshkey

Timestamps:
00:00 Intro
00:16 How to create a GitHub account step by step?
01:15 How to setup GitHub SSH key?
01:37 How to generate SSH key?
02:02 How to add an ssh key to the agent?
02:58 How to add a new SSH key to Github account?
03:32 How to test Github SSH key?
03:52 Outro

How to create a GitHub account step by step
1. Go to [Github.com](http://github.com) and fill-up the form
1. Pick a username
2. Add your Email
3. Add password, it should be secure enough
4. And click on Sing up!
2. On the next page, usually, you have to solve a simple puzzle. In my case, I need to choose spiral galaxy type and click on join a free plan
3. Here we are, we created an account. On this page, Github asks a couple of question. Answer it and click on Complete Setup
4. Do not forget to verify you email address

Next step, we need to setup GitHub ssh key.
Using the SSH protocol, you can connect and authenticate to remote servers and services. With SSH keys, you can connect to GitHub without supplying your username and personal access token at each visit.

It is a necessary step. It allows you to clone, fork and push code to remote branches on Github.

How to generate SSH key?
1. Open the terminal application
2. Type in the command

ssh-keygen -t ed25519 -C "[email protected]"

3. When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location.
4. At the prompt, type a secure passphrase.

Great! We generated a new ssh key. Let's move to the next step.

How to add ssh key to agent?

1. We need to run the command

eval "$(ssh-agent -s)"

2. If you're using macOS Sierra 10.12.2 or later, you will need to modify your ~/.ssh/config file to automatically load keys into the ssh-agent and store passphrases in your keychain.
Run:

open ~/.ssh/config

if the file does not exist run the touch command, first, and next, run `open` command

touch ~/.ssh/config

And add the following code:

Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519

Change `id_ed25519` if you specified another filename.

3. And the last, add key to ssh agent with the following command.

ssh-add -K ~/.ssh/id_ed25519

Great, we finished our local setup, now it is time to add your public part of the key to your GitHub account, so

How to add a new SSH key to Github account?

1. Let's copy your public part of the key to your clipboard with the following command:

pbcopy ~/.ssh/id_ed25519.pub

2. In the upper-right corner of any page, click your profile photo, then click Settings.
3. In the user settings sidebar, click SSH and GPG keys.
4. Click New SSH key or Add SSH key.
5. In the "Title" field, add a descriptive label for the new key. For example, if you're using a personal Mac, you might call this key "Personal MacBook Air".
6. Paste your key into the "Key" field.
7. Click Add SSH key.
8. If prompted, confirm your GitHub password.

We generated SSH key, Added public key to your Github account, now it is time to test it out!

How to check, that you setup GitHub SSH keys correctly?

1. Open Terminal
2. Enter the following code

ssh -T [email protected]

3. You may see a warning, just accept it.
4. Verify that the resulting message contains your username. Like I do.

Well done! Today you made the first step in your software development carrier. Now you have an access to the biggest source code vault. For example, follow my Github Pages to get a notification when I publish a new repository.

Please click on thumbs up button, if you liked the video and subscribe to the channel. There are so many software development topics to explore together.

BE MY FRIEND:
? My website / blog - https://valenso.online/
? Instagram - https://instagram.com/valenso
? Twitter - https://twitter.com/valenso

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «How to create a GitHub account and setup local machine | SSH key tutorial», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.