Operating System - OpenVMS
1752427 Members
5818 Online
108788 Solutions
New Discussion юеВ

Re: ssh and key generation

 
jason49504
Occasional Visitor

ssh and key generation

In all the reading i have done it informs me that the ssh2_keygen command will create a public and privatte key. Private with no extension and public with a .pub extension. However when i invoke the ssh2_keygen command i only see a public key in the users ssh2 directory, am i doing something wrong ?

 

ssh2_keygen -l user domain.com  (ssh2_keygen -l testuser 192.168.1.11)

 

openvms 8.3

tcpip v5.6 - eco4

 

 

.HOSTKEYS>$ SH DEF
  DQB0:[TESTUSER.SSH2.HOSTKEYS]
.HOSTKEYS>$ DIR

Directory DQB0:[TESTUSER.ssh2.hostkeys]

key_22_192_168_1_11.pub;1

Total of 1 file.

 

 

4 REPLIES 4
Steven Schweda
Honored Contributor

Re: ssh and key generation

 
Hoff
Honored Contributor

Re: ssh and key generation

See the HP TCP/IP Services for OpenVMS Guide to SSH as your starting point for learning the step-by-step details of ssh configuration involving OpenVMS, and you might then also review other available resources including Mac & OpenVMS Tips: sftp and ssh certificate (no password) login or other similar posts; that latter posting is for a Unix-based connection into an OpenVMS box, so the private key is on the Mac OS X box and the public key is on the OpenVMS box.  (Google and particularly searching through comp.os.vms newsgroup using Google Groups - somewhat inexplicably, Google Groups isn't in the default Google search index - will find a number of topics on ssh configurations, too.)

 

jason49504
Occasional Visitor

Re: ssh and key generation

Thanks a bunch that is exaclty what i needed. Sadly you are correct i do need to read more carefully.

I read this note

"SSH for OpenVMS software is based on SSH2 software from SSH Communication Security
version 2.4.1. In the OpenVMS implementation, the commands SSH, SCP, and SFTP mean the
same as SSH2, SCP2, and SFTP2. You can use either set of commands with SSH for OpenVMS." 

 

and just assumed everything could just have a 2 appended on it, hence i used ssh2_keygen

 

Once again Thank you very much.

Steven Schweda
Honored Contributor

Re: ssh and key generation