Create SSH user without password using PuttyGen

Create SSH User
[root@localhost ~]# useradd test
[root@localhost ~]# passwd test

Create Keypair using PyttyGen

 Copy Public key and paste into authorized_keys file

[root@localhost test]# mkdir /home/test/.ssh
[root@localhost .ssh]# vi /home/test/.ssh/authorized_keys
Paste the Public key
[root@localhost home]# chown test:test -R test/.ssh/

Save Private key

Using putty to connect Server

Nhận xét

Bài đăng phổ biến