Server To Server Password less connectivity setup
Here I have below two server
First Server :-192.168.2.100
Second Server :-192.168.2.101
I need password less connectivity from "First Server" to "Second Server".
Login to First Server (192.168.2.100) and perform below steps
Step 1: Create Authentication SSH-Kegen Keys on First Server
ssh-keygen -t rsa
Step 2: Create .ssh Directory on Second Server from First server
ssh user@192.168.2.101 mkdir -p .ssh
Step 3: Upload Generated Public Keys on Second Server from First Server
cat .ssh/id_rsa.pub | ssh user@192.168.2.101 'cat >> .ssh/authorized_keys'
Step 4: Set Permissions on Key File on Second Server from First Server
ssh user@192.168.2.101 "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"
Here I have below two server
First Server :-192.168.2.100
Second Server :-192.168.2.101
I need password less connectivity from "First Server" to "Second Server".
Login to First Server (192.168.2.100) and perform below steps
Step 1: Create Authentication SSH-Kegen Keys on First Server
ssh-keygen -t rsa
Step 2: Create .ssh Directory on Second Server from First server
ssh user@192.168.2.101 mkdir -p .ssh
Step 3: Upload Generated Public Keys on Second Server from First Server
cat .ssh/id_rsa.pub | ssh user@192.168.2.101 'cat >> .ssh/authorized_keys'
Step 4: Set Permissions on Key File on Second Server from First Server
ssh user@192.168.2.101 "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"
No comments:
Post a Comment