fix: converted single to triple backticks7 (#36234)

This commit is contained in:
Randell Dawson
2019-06-20 14:45:11 -07:00
committed by Tom
parent 19a601f135
commit ab2523953b
75 changed files with 1397 additions and 1177 deletions

View File

@@ -6,25 +6,29 @@ localeTitle: كيفية المصادقة باستخدام GitHub باستخدا
تحقق من عدم وجود ملفات `rsa` هنا قبل المتابعة ، استخدم:
`ls -al ~/.ssh
`
```shell
ls -al ~/.ssh
```
إذا لم يكن هناك ما يتم سرده (على سبيل المثال `: No such file or directory` ) ، فاستخدم:
`mkdir $HOME/.ssh
`
```shell
mkdir $HOME/.ssh
```
إذا لم يكن هناك شيء هناك ، قم بإنشاء keygen جديد مع:
`ssh-keygen -t rsa -b 4096 -C your@email.com
`
```shell
ssh-keygen -t rsa -b 4096 -C your@email.com
```
الآن باستخدام `ls -al ~/.ssh` سوف تظهر لدينا `id_rsa.pub` الملف.
أضف مفتاح SSH إلى وكيل SSH:
`eval "$(ssh-agent -s)" # for mac and Linux from bash
`
```shell
eval "$(ssh-agent -s)" # for mac and Linux from bash
```
``eval `ssh-agent -s`
ssh-agent -s # for Windows
@@ -32,20 +36,24 @@ localeTitle: كيفية المصادقة باستخدام GitHub باستخدا
إضافة مفتاح RSA إلى SHH مع:
`ssh-add ~/.ssh/id_rsa
`
```shell
ssh-add ~/.ssh/id_rsa
```
انسخ مفتاحك إلى الحافظة
`clip < ~/.ssh/id_rsa.pub # Windows
`
```shell
clip < ~/.ssh/id_rsa.pub # Windows
```
`cat ~/.ssh/id_rsa.pub # Linux
`
```shell
cat ~/.ssh/id_rsa.pub # Linux
```
انتقل إلى صفحة [إعدادات](https://github.com/settings/keys) GitHub وانقر على زر "New SSH key" في المفتاح الذي تم إنشاؤه.
ثم توثيق مع:
`ssh -T git@github.com
`
```shell
ssh -T git@github.com
```