Operating System - HP-UX
1833877 Members
1788 Online
110063 Solutions
New Discussion

Re: sftp whit private and public key

 
Toscanini
Occasional Contributor

sftp whit private and public key

greeting,

In HP-UX 11.00 with SSH, which is the correct configuration to accept a sftp without password from a SUN machine, in direct login?

I`m using sftp username@hostname to connect in.

I have a public and private key in /home/username/.ssh directory

Thanks
Tosca.-
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: sftp whit private and public key

Shalom,

Add the public key the one that ends in .pub to the target server(s) authorized_keys files in the .ssh direcotry. If the target server has no authorized_keys file create one.

Here is the quick and dirty way I create to servers to have public keys.

ssh-keygen -t dsa # which you have done
scp -p id_pub.dsa myuser@secondhost:/$PWD/authorized_keys

Then I reverse the process from the second host.

I have a more elaborate document on the whole process intended for last years defunct HP World.

http://www.hpuxconsulting.com/5004.ppt

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Toscanini Montaño
Occasional Advisor

Re: sftp whit private and public key

Thanks Steven,

I will to check the document and tell you late.

Tosca.-
Chris Fleming_1
New Member

Re: sftp whit private and public key

One thing to check, is the permissions on the public and private keys, You private key should be 0600 and the public key 0655

Also try using the -v flag for ssh, this increases the verbosity of the messages and will provide clues as to why this is failing.