|
SSH Key-Pair Authentication SSH key pair là một cặp khóa mã hóa gồm public key và private key, dùng để đăng nhập và xác thực an toàn vào máy chủ từ xa mà không cần dùng mật khẩu. Cấu trúc của SSH Key Pair
Nguyên lý hoạt động
Thực hành: #Server 1 muốn ssh vào server 2 không cần password, sử dụng key-pair root@server1:/# ssh-keygen -t ed25519 -C giangit.com@gmail.co root@server1:/# cd /root/.ssh/ private key : id_ed25519 private key public Key id_ed25519.pub #copy sang server 2 root@server1:/# ssh-copy-id -i id_ed25519.pub root@server2> #Thử ssh vào server2 sẽ không thấy bị yêu cầu nhập password nữa |

