Linux生成密钥
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
大家可以配置成密论认证的方式
首先生成密钥,用命令ssh-keygen –t rsa
运行后可以一直空格,生成密钥,id_rsa和id_rsa.pub文件 ,默认放在/root/.ssh/下,.ssh文件是隐藏的,要显示隐藏文件才看得到
在/home/admin下创建.ssh活页夹,把id_rsa.pub文件copy 到/home/admin/.ssh活页夹下,改变文件名为authorized_keys
把id_rsa 文件copy 到一个目录如/home/id_rsa
用下面的命令测试配好了没:
ssh -i /home/id_rsa admin@localhost
应该不用密码就直接进去了~




A beautiful web dashboard for Linux
最近提交(Master分支:16 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)