Server A (Local Server)
Server B (Remote Server)
Server A:
1. ssh-keygen -t rsa // generate a key using ssh-keygen
// More Secure: ssh-keygen -t rsa -b 4096
2. scp id_rsa.pub myname@SERVERB:/home/myname/
SERVER B:
1. ssh-keygen -t rsa
2. cp id_rsa.pub .ssh/authorized_keys2
3. chmod 700 ../.ssh
4. chmod 640 .ssh/authorized_keys2
No comments:
Post a Comment