- 博客(5)
- 资源 (1)
- 收藏
- 关注
转载 SSH免密登录配置
1. 生成ssh key# ssh-keygenGenerating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa):Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /root/.ssh/id_rsa.Yo
2021-03-17 16:29:43 1095
原创 如何更换我的密钥对?
1. 问题描述更换云服务器密钥对,删除旧的密钥对。2. 处理方法登录Linux云服务器上制作密钥对,首先用密码或旧的密钥登录到待更换密钥对的云服务器,然后执行以下命令:[root@host ~]$ ssh-keygen <== 建立密钥对Generating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa): <== 按 EnterCreated directo
2021-03-16 14:27:47 870 1
原创 history命令
清空历史记录,不留痕迹# history -c然后,直接退出会话,不要再输入其他命令。禁用历史记录# echo "HISTSIZE=0" >> /etc/profile# echo "HISFILETSIZE=0" >> /etc/profile# source /etc/profile# history -c使用Ctrl + r,搜索历史记录# 当按下ctrl + r键,会出现下面状态。(reverse-i-search)`': # 然后.
2021-03-16 11:32:52 214
原创 dig批量获取域名对应IP
# dig +nocmd +noall +answer -f 1.txt其中,1.txt是待获取IP对应域名列表的集合。dev-nmg-huhehaote1-cache-01.in.xxx.cndev-nmg-huhehaote1-cache-02.in.xxx.cndev-nmg-huhehaote1-devtest-110.in.xxx.cndev-nmg-huhehaote1-devtest-111.in.xxx.cndev-nmg-huhehaote1-devtest-140.in.x
2021-03-03 00:21:30 1433
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人