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?