1833995 Members
2827 Online
110063 Solutions
New Discussion

ssh configuration

 
SOLVED
Go to solution
Hector Vargas
Frequent Advisor

ssh configuration

I need to configure ssh between two servers.

# cd /.ssh
# ls
known_hosts
#
#
#
# hostname
hpvzwa2
# pwd
/.ssh
# ls
known_hosts
# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (//.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in //.ssh/id_rsa.
Your public key has been saved in //.ssh/id_rsa.pub.
The key fingerprint is:
36:c3:3b:6b:aa:95:9f:65:66:f1:f3:49:69:dd:e2:e2 root@hpvzwa2
# ls -rlt
total 48
-rw-r--r-- 1 root sys 1890 Dec 19 13:36 known_hosts
-rw------- 1 root sys 883 Dec 19 14:17 id_rsa
-rw-r--r-- 1 root sys 222 Dec 19 14:17 id_rsa.pub



I did the same on the second server. how I need to know if I just need to copy files from server1 to server 2 on the same directory or do I need to added the key on a different configuration file.
2 REPLIES 2
KapilRaj
Honored Contributor
Solution

Re: ssh configuration

If you want 'password less login' for root user from server1 to server2, then copy the .id_rsa.pub from server1 to server2 as /.ssh/authorized_keys .

Regds,

Kaps
Nothing is impossible
Hector Vargas
Frequent Advisor

Re: ssh configuration

Thanks, that does the trick.