This may seem to be an old question , but I would appreciate if someone can help me out here . I read one method regarding using SCP is passwordless mode . I tried to do it ,but somehow it soeanot seem to work out . here's what i did :
I have 2 AIX machines say mach1 and mach2 . both have users with names sam. Now I follow the following
On mach1 :
/home/sam>ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/sam/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /homw/sam/.ssh/id_dsa.
Your public key has been saved in /home/sam/.ssh/id_dsa.pub.
The key fingerprint is:
then I copy the contents of /home/sam/.ssh/id_dsa.pub to the authorized_keys on mach2 .
I repeat the same on mach2 and copy it's contents to authorized_keys on mach1.
Now I give the following command on mach1:
scp -B sam@mach2:/home/sam/k1 k2
and i get the following error :
Host key verification failed.
Please let me know if I did something wrong. Actaully I am trying to implement passwordless scp between 2 systems.
One more doubt i have is:From where the password for a user is picked up when one machine tries t oconnect to another .
Thanks in advance