Create SSH user without password using PuttyGen
Create SSH User
[root@localhost ~]# useradd test
[root@localhost ~]# passwd test
Create Keypair using PyttyGen
[root@localhost test]# mkdir /home/test/.ssh
[root@localhost .ssh]# vi /home/test/.ssh/authorized_keys
Using putty to connect Server
[root@localhost ~]# useradd test
[root@localhost ~]# passwd test
Create Keypair using PyttyGen
Copy Public key and paste into authorized_keys file
[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
Nhận xét
Đăng nhận xét