The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 11-08-2005
dangral dangral is offline
Registered User
 

Join Date: Oct 2002
Posts: 670
Quote:
Originally Posted by sgaucho
Hi,

Thanks for the info. Our client unix machine has OpenSSH running on it. Using the tool ssh-keygen, I did generate a public and private key, inserted the Public key in the remote machine $home/.ssh dir but still I am being asked for a password.

I have a doubt here and appreciate any clarification:

I have been provided with an user and password to login via SFTP to the remote machine. How do I tie this user and password to the Public/ Private Keys generated in the client machine ????
If I dont tie them together, how does the remote machine permit access to it !!?

Thnx,
Sands
You don't need the username and password in that case. The server allows you to log in through another authentication mechanism(public key).

When you copied the public key to the destination server, did you put it in the file ~/.ssh/authorized_keys? Whats the permissions of the file? Of the .ssh directory?
Reply With Quote