1. Generate a key pair (private key and public key) in Server A
ssh-keygen -t rsa2. Copy the public key from Server A to Server B.
scp id_rsa.pub testuser:[server_B_ip_address]:/home/testuser/.ssh3. In Server B, add that public key into authorized_keys file.
cat id_rsa.pub >> authorized_keys4. Verify it from Server A.
ssh testuser@[server_B_ip_address]
No comments:
Post a Comment