1,用户所有的web服务,都应该使用普通用户。所有web服务都不应该监听80端口,除了负载均衡 新建www用户 useradd www ssh-keygen -t rsa cat id_rsa.pub 把内容复制到客户端的 ~.ssh/authorized_keys (权限644) 可以通过ssh ...
分类:
其他好文 时间:
2017-06-03 23:29:14
阅读次数:
226
1、两个服务器ssh免授权:ssh-keygen-trsa一直回车至结束ssh-copy-id-i/root/.ssh/id_rsa.pub远程ip然后回车输入远程ip密码搞定,以后访问就不用验证密码了2、压缩和解压缩命令:.tar解包:tarzxvfFileName.tar打包:tarczvfFileName.tarDirName------------------------------..
分类:
系统相关 时间:
2017-06-02 01:08:45
阅读次数:
228
ssh-keygen 使用的时候可以直接使用 -f 参数 指定密钥保存文件,省去后面生成成功后再提示选择保存文件: ssh-keygen -t rsa -C "abc@example.com" -f ~/.ssh/id_rsa ...
分类:
其他好文 时间:
2017-06-01 12:00:42
阅读次数:
121
1.配置ssh key ssh-keygen -t rsa -C "注册GitHub的邮箱" Enter file in which to save the key (/c/Users/yongfengnice/.ssh/id_rsa): //提示输入key保存的文件名称,默认是用户名下的.ssh文 ...
分类:
其他好文 时间:
2017-05-28 16:06:20
阅读次数:
254
[root@localhost .ssh]# /usr/bin/ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Ent ...
分类:
其他好文 时间:
2017-05-27 23:02:20
阅读次数:
280
一、节点准备1、节点配置hostnameg0matadata节点g1matadata节点g2matadata节点g3data节点g4data节点g5data节点2、安装ntpyuminstallntp-y
servicentpdstart
systemctlenablentpd二、安装gpfs1、设置ssh无密码登录salt-ssh-i‘*‘cp.get_filesalt://id_rsa/root/.ssh/id_rsa
salt-..
分类:
其他好文 时间:
2017-05-27 14:17:48
阅读次数:
2284
git clone失败,提示输入的密码错误,执行以下两步 1. 重新生成ssh 在命令行执行命令:ssh-keygen -t rsa -C "example@example.com" 邮箱要输入自己的地址 2. 把生成的 ~/.ssh/id_rsa.pub 公共密钥添加到git网站上 ...
分类:
其他好文 时间:
2017-05-26 23:39:09
阅读次数:
470
在配置本机与docker容器实现ssh无密码访问时出现以下报错 # federico @ linux in ~ [18:35:52] C:127$ sudo ssh-copy-id -i .ssh/id_rsa.pub 'root@172.18.0.2'/usr/bin/ssh-copy-id: I ...
分类:
其他好文 时间:
2017-05-26 19:40:16
阅读次数:
1512
1.生成 $ ssh-keygen -t rsa -C 2.获取当前的ssh公钥 $ cat ~/.ssh/id_rsa.pub ...
分类:
其他好文 时间:
2017-05-25 23:34:59
阅读次数:
181
方法其实很多,试了很多方式,对于一个内部使用来说,有个更为方便的方法: step 1 进入root目录,执行: ssh-keygen 什么都不必填,只要按回车即可。 step 2 进入指定的root/.ssh 目录下,你可以看到多出了2个文件,之前是没有的。 step 3 ssh-copy-id - ...
分类:
其他好文 时间:
2017-05-25 18:22:41
阅读次数:
414