在命令查看自己的秘钥还是公钥 cat .ssh/id_rsa.pub/cat .ssh/id_rsa ...
分类:
其他好文 时间:
2017-01-01 16:30:32
阅读次数:
156
下载地址:https://git-scm.com/download/win 打开Git Bash输入 ssh-keygen 打开C:\Users\hsy\.ssh\id_rsa.pub 在某个git仓库目录下:git config user.email "huangsy13@gmail.com" g ...
使用git将代码上传至github 1、在github中创建一个Repository 2、在setting的deploy中粘贴本地生成的id_rsa.pub 3、测试ssh远程连接是否成功: 提示:'You’ve successfully authenticated, but GitHub does ...
分类:
其他好文 时间:
2016-12-30 21:51:17
阅读次数:
177
Permissions 0644 for ‘/root/.ssh/id_rsa’ are too open.问题 如果出现 Permissions 0644 for ‘/root/.ssh/id_rsa’ are too open. 等错误显示了,原来只要把权限降到0600就ok了 输入命令 chm ...
分类:
系统相关 时间:
2016-12-24 16:23:31
阅读次数:
273
1.在需要远程的ubuntu服务器上生成密钥,指令:ssh-keygen 一路默认下去,会在~/.ssh目录下生成 id_rsa(私钥)、id_rsa.pub(公钥) 2.复制公钥文件id_rsa.pub改名为authorized_keys,只有这个公钥里用户(这里是root)可以连接 3.将密钥中 ...
分类:
其他好文 时间:
2016-12-21 02:38:50
阅读次数:
249
1.ssh连接方式 公钥生成ssh-keygen -t rsa -C "764432054@qq.com"在用户家目录下的.ssh目录下生成 id_rsa ,id_rsa.pub 把公钥文件(id_rsa.pub)内容加到github里的sshkey里2.配置 3.设置发布模式 4.一些常用操作gi ...
分类:
其他好文 时间:
2016-12-18 23:37:24
阅读次数:
300
生成sshkey以bying用户执行下面的命令,一路回车即可ssh-keygen
实例:
$ssh-keygen
Generatingpublic/privatersakeypair.
Enterfileinwhichtosavethekey(/c/Users/zhjinl/.ssh/id_rsa):
/c/Users/zhjinl/.ssh/id_rsaalreadyexists.
Overwrite(y/n)?y
Enterpassphrase(emptyfo..
分类:
其他好文 时间:
2016-12-14 22:18:29
阅读次数:
337
1、A主机生成密钥对ssh-keygen -t rsa2、将A主机的公钥发给B主机scp id_rsa.pub linux2:/cloud //scp:是ssh协议的一个命令,远程复制 3、将A主机的公钥加入到B主机的授权列表(1)一般B主机刚刚开始并没有这个文件,首先和A一样先创建.ssh目录ss... ...
分类:
其他好文 时间:
2016-12-10 13:43:02
阅读次数:
230
1、ssh服务生成新的公钥和私钥[root@rhel6_80 ~]# ssh-keygen Generating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa): Enter pa... ...
分类:
其他好文 时间:
2016-12-05 13:58:58
阅读次数:
261
1. 打开 git bash 2. cd ~/.ssh 3. ssh-genkey (一致next), 会生成 id_rsa (密钥); id_rsa.pub(公钥) 4. 用记事本打开 id_rsa.pub 5. github帐号的 settings -> ssh,gap -> new ssh k ...