What is the best way of doing SCP from one box to the other without prompting for password?
There are two servers:
Server A (10.152.2.10):
Server B (10.152.2.11):
If I want to transfer the files using
scp from server A to server B without being prompted to enter a password
[running this from Server A,
scp files.txt firstname.lastname@example.org:/home/oracle/import
This would prompt me for a password upon entering the command.
I understand that a keygen is required to be generated and copied to Server A. Thus [at server A]:
ssh-keygen -t rsa
This gives me two files stored in
1. Am I supposed to copy the two files (
id_rsa.pub) over into server B
While doing some google search on this, some articles mentioned about appending/concatenating this to authorized_keys.
2. Am I supposed to create this file on my own?
I seem to be confused on what is the right way to do this.
Btw, the two servers are running Suse Linux Enterprise Edition 9...