Valene Corbin asked 1 year ago
Title : How is Passwordless ssh done from Linux Machine A to Linux Machine B?

Question :

How is Passwordless ssh done from Linux Machine A to Linux Machine B?

1 Answers
Ruchin SinhaRuchin Sinha Staff answered 1 year ago

Hi,
 
Let’s say the Linux Machine A has IP Address: 192.168.100.1 and Linux Machine B has IP Address 192.168.100.2. Login to Linux Machine A and generate public key using the following command:

ssh-keygen -t rsa

Upload the above public key on Linux Machine B using below commands:
 
ssh demo@192.168.100.2 mkdir -p .ssh
cat .ssh/id_rsa.pub | ssh demo@192.168.100.2 ‘cat >> .ssh/authorized_keys’
ssh demo@192.168.100.2 “chmod 700 .ssh; chmod 640 .ssh/authorized_keys”
 
Thanks,
Ruchin

Cubastion is among a very small number of specialized Siebel CRM Oracle Gold Partners in SME.