If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > passwordless scp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-09-04, 11:53
saurav101 saurav101 is offline
Registered User
 
Join Date: Oct 2003
Posts: 19
Question passwordless scp

Hi ,
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:
4c:ea:81:51:b8:40:dd:85:8d:aa:0d:40:09:6d:7f:96 sam@mach1

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
Saurav
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On