Centos7 server creates a new user, and creates a public key private key pair for the new user, sets up a network proxy for the ssh client, and the new user logs in to the server locally through the private key without secret

Centos7 server creates a new user, and creates a public key private key pair for the new user, sets up a network proxy for the ssh client, and the new user logs in to the server locally through the private key without secret

1. Create a new user and password for the server

(base) [root@bigdata1 ~]# useradd fe.ya4 -d /home/feya
(base) [root@bigdata1 home]# passwd fe.ya4
更改用户 fe.ya4 的密码 。
新的 密码:
重新输入新的 密码:
passwd:所有的身份验证令牌已经成功更新。

2. Create a key storage directory

(base) [root@bigdata1 hom

Guess you like

Origin blog.csdn.net/zhengzaifeidelushang/article/details/114573596