http://blog.chinaunix.net/uid-15007890-id-3220876.html
一、修改最后一次 commit
1
|
|
二、修改再之前 commit
1. 查看之前commit
1
|
|
2. 显示结果如下,把准备修改的commit前面的 pick 改为 edit ,并 :wq 保存退出
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
3. 进行修改
1 2 |
|
http://blog.chinaunix.net/uid-15007890-id-3220876.html
1
|
|
1
|
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
1 2 |
|
http://blog.chinaunix.net/uid-8116903-id-334714.html
a、使用命令 ssh-keygen -t rsa 生成密钥
b、将公钥拷贝到远程服务器上的 /root/.ssh/authorized_keys 文件
c、客户端上保留私钥,公钥留不留都可以。也就是服务器上要有公钥,客户端上要有私钥。这样就可以实现无密码验证登录了。
可以修改上 /etc/ssh/sshd_conf 中的
1 2 |
|
也即只能使用密匙认证的openssh,禁止使用口令认证。
https://blog.csdn.net/wang1144/article/details/51731059
每次ssh 进入一台新机器都会跳出如下的提示:
1 2 3 |
|
1
|
|
2.修改配置文件
在文件/etc/ssh/ssh_config(全局)或者~/.ssh/config(某用户)开头加入以下内容:
1 2 3 4 5 6 7 8 |
|