添加ssh key

我现在根据《github入门和实践》来去摸索github

其实,我发现自己在看github时,感觉不适应,是因为自己太久没有碰到英文了。可以联想到以前当看到一个网页,根据汉字的标题或描述,就可以快速判断,点进去可以看到什么,现在面对英文,反而有点吃力。

现在,我既然有了这本书,就好好地去实践探索一下。

首先,就是在我的macbook 上,安装git最新版。

一开始,我以为是点击图标运行,后来发现是直接食用macbook 的终端来输入命令。

我在思考,我自己在不懂的情况下, 可以先实践一遍,就慢慢清晰了。

然后,设置自己最新的ssh key

在书上,设置ssh 是为了使用通过ssh的公开密钥来认证方式来连接github上已有仓库的认证。

一开始,我自己也是一头雾水,究竟这个ssh要来怎样连接仓库的。

我根据书上一步一步地设置,最后生成了公开密钥和私有密钥。

生成的公开密钥在github设置好后,然后连接github的仓库,看是否可行。

这是我的第一步探索过程,接下来慢慢再探索交流

时间: 2024-08-01 10:53:43

添加ssh key的相关文章

github入门:设置添加ssh key<转>

转自:http://blog.csdn.net/binyao02123202/article/details/20130891 很多朋友在用github管理项目的时候,都是直接使用https url克隆到本地,当然也有有些人使用 SSH url 克隆到本地.然而,为什么绝大多数人会使用https url克隆呢? 这是因为,使用https url克隆对初学者来说会比较方便,复制https url 然后到 git Bash 里面直接用clone命令克隆到本地就好了.而使用 SSH url 克隆却需要

github添加ssh key报错Key is invalid. Ensure you've copied the file correctly

github添加ssh key的时候报错:Key is invalid. Ensure you've copied the file correctly 将秘钥复制粘贴到文本编辑器中,再粘贴复制到 github添加ssh key报错Key is invalid. Ensure you've copied the file correctly

(诊断)为GitHub添加SSH key时出现“Could not open a connection to your authentication agent”错误的应对方案(转)

在为windows 环境下的github账户添加SSH key时,需要在Git Bash执行如下命令: 第一步:检查已有的SSH keys $ ls -al ~/.ssh 第二步:生成新的SSH key $ ssh-keygen -t rsa -C "[email protected]" # Creates a new ssh key, using the provided email as a label # Generating public/private rsa key pai

gitLab添加ssh key

电脑新装了一台虚拟机,想要和gitLab建立一个安全的ssh连接,步骤如下 1.本机生成ssh key 系统环境:Linux 使用root用户登录,执行命令:ssh-keygen -t rsa -C "[email protected]",默认回车就ok了,该命令会创建一个隐藏的.ssh文件夹,文件夹中有2个文件:id_rsa(私钥)和id_rsa.pub(公钥),使用命令:vi id_rsa.pub查看公钥内容,复制公钥内容. 2.gitLab添加ssh key  3.授权 chmo

github添加SSH Key

1.背景介绍 缘由:在github上下载goagent时出现错误. 在终端使用命令:git clone [email protected]:phuslu/goagent.git 会报权限错误如下: Cloning into 'goagent'... The authenticity of host 'github.com (192.30.252.128)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:6

Git第一次新建项目添加ssh key

Git第一次新建项目添加ssh key Last login: Mon Sep  3 08:59:35 on console localhost:~ dajiang$ cd ~/.ssh -bash: cd: /Users/dajiang/.ssh: No such file or directory localhost:~ dajiang$ sudo apt-get install git Password: sudo: apt-get: command not found localhost

为github添加ssh key

用git关联github上的远程仓库前需要先为github添加ssh key 一.检查本机是否生成ssh key 本地查找.ssh文件,其中id_rsa.pub中的内容就是ssh key 二.为github上的仓库添加ssh key 原文地址:https://www.cnblogs.com/2sheep2simple/p/10372391.html

sourceTree 添加 ssh key 方法

1.使用 git 客户的生成公私钥:id_rsa.id_rsa.pub 1.1设置Git的user name和email:$ git config --global user.name "xxx"$ git config --global user.email "[email protected]"121.2.生成SSH密钥过程: 1.2.1.检查是不是已经存在密钥(能进去说明已经存在,就删掉文件夹,重新创建): cd ~/.ssh1.3.生成 SSH 密钥: $

Windows环境下阿里云添加SSH Key及Git配置Key

1. 运行 git-bash.exe 进入命令行 2. 判断是否已存在本地公钥: cat ~/.ssh/id_rsa.pub 如果看到一长串以 ssh-rsa 或 ssh-dsa 开头的字符串,可以跳过 ssh-keygen 步骤 3. 生成 ssh key ssh-keygen -t rsa "自定义标识符" 生成代码会有两个步骤,提示设置密码(默认没有密码).pub文件名称及保持路径,按Enter直接跳过步骤使用默认值.需要注意的是,如果自定义了文件名/路径,需要在 SSH 客户端