1833211 Members
3472 Online
110051 Solutions
New Discussion

ssh-keygen

 
SOLVED
Go to solution
mike adams_4
Occasional Contributor

ssh-keygen

On a system running HP-UX11.11 I am trying to create my "identity.pub" key by running "ssh-keygen" and it fails stating it requires an argument (-t, -i, etc). I have created my dsa key and I can create my rsa keys but how do I create my identity.pub?
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: ssh-keygen

Doc attached.

If you are trying to create public keys for exchange the doc will work. The X part can be accomplished with cat commands.

If thats not your goal, ignore this post and doc.

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
mike adams_4
Occasional Contributor

Re: ssh-keygen

I have my authorized_keys and my authorized_keys2 setup. I just am looking for a way to create my identity.pub key. I had created this about 2 years ago with the command "ssh-keygen" and no arguments but that no longer works.
Ralph Grothe
Honored Contributor
Solution

Re: ssh-keygen

Hi Mike,
in the identity.pub usually goes the RSA1 public key (I guess RSA key for protocol version 1, in case you connect to a dated sshd somewhere).

Try this

ssh-keygen -t rsa1 -b 1024 -N ""

It should prompt you to confirm the file $HOME/.ssh/identity.pub
but of course you are free to predetermine the file with the -f switch of above command.
Madness, thy name is system administration
mike adams_4
Occasional Contributor

Re: ssh-keygen

That worked....much thanks Ralph.