[Info-vax] VMS ssh client to freeSSHd on Windows
Sum1
not at here.com
Tue Nov 15 02:17:01 EST 2011
My apologies - ssh -v information…..
ssh -v
debug: Ssh2/SSH2.C:1904: CRTL version (SYS$SHARE:DECC$SHR.EXE ident) is V8.3-00
debug: SshAppCommon/SSHAPPCOMMON.C:322: Allocating global SshRegex context.
debug: SshConfig/SSHCONFIG.C:3421: Metaconfig parsing stopped at line 4.
debug: SshConfig/SSHCONFIG.C:875: Setting variable 'VerboseMode' to 'TRUE'.
debug: SshConfig/SSHCONFIG.C:3421: Metaconfig parsing stopped at line 4.
debug: SshConfig/SSHCONFIG.C:875: Setting variable 'VerboseMode' to 'TRUE'.
warning: You didn't specify a host name.
Type alpha$dqa1:[sys0.syscommon.][sysexe]tcpip$ssh_ssh2.exe -h for help.
On 2011-11-15 07:14:49 +0000, Sum1 said:
> Thanks to all those who helped, especially those who recommended
> editing the public keyfile to strip the VMS-style information - that
> appears to have got me over the hurdle.
>
> The technique required was to generate a public/private key pair on VMS
> then copy the public key to windows, edit it to remove the VMS-specific
> format and make it like OpenSSH. This entails removing VMS
> header/trailer information and the comment from the file, then removing
> the line breaks and appending ssh-rsa and a space - result, one long
> record with rsa-ssh and stuff. This modified file is placed on the
> freeSSHd server where the publik keys reside (varies by installation I
> am informed). It means the Windows and VMS publiv keys are in
> different formats. Trying to do an ssh-add of the windows-format key
> will fail, so let windows keep its format key and VMS can keep its own
> format key.
>
> Now, one last problem - of course! Following is the output from an ssh
> connection, note that the authentication is fine (apparently) but the
> session immediately dies. Googling for help on the message is -
> unhelpful. VMS expert opinion greatly appreciated.
>
> Cheers
>
> ssh test at 192.168.100.157
> debug: Connecting to 192.168.100.157, port 22... (SOCKS not used)
> debug: Ssh2/SSH2.C:2880: Entering event loop.
> debug: Ssh2Client/SSHCLIENT.C:1608: Creating transport protocol.
> debug: SshAuthMethodClient/SSHAUTHMETHODC.C:110: Added "publickey" to
> usable methods.
> debug: SshAuthMethodClient/SSHAUTHMETHODC.C:110: Added "password" to
> usable methods.
> debug: Ssh2Client/SSHCLIENT.C:1649: Creating userauth protocol.
> debug: client supports 2 auth methods: 'publickey,password'
> debug: SshUnixTcp/SSHUNIXTCP.C:1378: using local hostname alpha.swoose.com.au
> debug: Ssh2Common/SSHCOMMON.C:546: local ip = 192.168.100.200, local
> port = 56927
> debug: Ssh2Common/SSHCOMMON.C:548: remote ip = 192.168.100.157, remote
> port = 22
> debug: SshConnection/SSHCONN.C:2290: Wrapping...
> debug: SshReadLine/SSHREADLINE.C:3652: Initializing ReadLine...
> debug: Remote version: SSH-2.0-WeOnlyDo 2.1.3
> debug: Ssh2Transport/TRCOMMON.C:2268: lang s to c: `', lang c to s: `'
> debug: Ssh2Transport/TRCOMMON.C:2333: c_to_s: cipher aes128-cbc, mac
> hmac-sha1, compression none
> debug: Ssh2Transport/TRCOMMON.C:2336: s_to_c: cipher aes128-cbc, mac
> hmac-sha1, compression none
> debug: Remote host key found from database.
> debug: Ssh2Common/SSHCOMMON.C:347: Received SSH_CROSS_STARTUP packet
> from connection protocol.
> debug: Ssh2Common/SSHCOMMON.C:397: Received SSH_CROSS_ALGORITHMS packet
> from connection protocol.
> debug: server offers auth methods 'password,publickey'.
> debug: Ssh2AuthPubKeyClient/AUTHC-PUBKEY.C:1682: adding keyfile
> "/DQA1/USERS/test/ssh2/test" to candidates
> debug: Constructing and sending signature in publickey authentication.
> debug: Ssh2AuthPubKeyClient/AUTHC-PUBKEY.C:874:
> ssh_client_auth_pubkey_send_signature: reading
> /DQA1/USERS/test/ssh2/test
> debug: Ssh2AuthPubKeyClient/AUTHC-PUBKEY.C:1920: Public key
> authentication was successful.
> debug: Ssh2Common/SSHCOMMON.C:315: Received SSH_CROSS_AUTHENTICATED
> packet from connection protocol.
> debug: SshReadLine/SSHREADLINE.C:3718: Uninitializing ReadLine...
> Authentication successful.
>
> debug: Ssh2Common/SSHCOMMON.C:857: num_channels now 1
> debug: DISPLAY not set; X11 forwarding disabled.
> debug: Ssh2ChannelSession/SSHCHSESSION.C:3343: starting session failed:
> result 0
> debug: Ssh2Common/SSHCOMMON.C:824: num_channels now 0
> debug: Got session close with exit_status=0
> debug: destroying client struct...
> debug: Ssh2Client/SSHCLIENT.C:1684: Destroying client.
> debug: SshConfig/SSHCONFIG.C:2830: Freeing pki. (host_pki != NULL,
> user_pki = NULL)
> debug: SshConnection/SSHCONN.C:2342: Destroying SshConn object.
>
> Connection to 192.168.100.157 closed.
More information about the Info-vax
mailing list