- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: SFTP setup on openVMS question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2008 03:12 PM
тАО11-19-2008 03:12 PM
SFTP setup on openVMS question
The sftp works fine in interactive mode but I cant get it to work as batch.
The thing i am missing is how to copy the key from vms client to the windows machine!
SUNNY2$ sftp dotstosunpassdb
oracle@dotstosunpassdb's password:
sftp> put wc.com
wc.com | 18B | 0.0 kB/s | TOC: 00:00:01 | 100%
sftp>
SUNNY2$ sftp "-B" "BF.FTP" oracle@dotstosunpassdb
warning: Authentication failed.
Disconnected; no more authentication methods available (No further authentication methods available.).
FATAL: ssh2 client failed to authenticate. (or you have too old ssh2 installed, check with ssh2 "-V")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2008 04:48 PM
тАО11-19-2008 04:48 PM
Re: SFTP setup on openVMS question
> I cant get it to work as batch.
> oracle@dotstosunpassdb's password:
It appears to me that you're using password
authentication when you run it interactively.
Did you really expect that to work in batch
mode?
> The thing i am missing is how to copy the
> key from vms client to the windows machine!
Where did you make the key files? I assume
that anything named "freeSSHD" would expect
key files in OpenSSH format, which differs
from the format used by the VMS TCPIP
software. There must be very many old Forum
discussions involving the required format
conversion. Many non-TCPIP ssh-keygen
programs offer more key conversion options
than the TCPIP. I don't know what freeSSH
can do,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2008 07:50 PM
тАО11-19-2008 07:50 PM
Re: SFTP setup on openVMS question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2008 07:52 PM
тАО11-19-2008 07:52 PM
Re: SFTP setup on openVMS question
SUNNY2$ sftp "-B" "-BF.FTP" dotstosunpassdb
Host key saved to ssh2/hostkeys/key_22_dotstosunpassdb.pub
host key for dotstosunpassdb, accepted by oracle Thu Nov 20 2008 03:28:53
warning: Authentication failed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2008 08:44 PM
тАО11-19-2008 08:44 PM
Re: SFTP setup on openVMS question
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1281433
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1270551
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1259701
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2008 08:51 PM
тАО11-19-2008 08:51 PM
Re: SFTP setup on openVMS question
Host key saved to ssh2/hostkeys/key_22_dotstosunpassdb.pub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2008 09:20 PM
тАО11-19-2008 09:20 PM
Re: SFTP setup on openVMS question
SUNNY2$ ssh -v
debug(20-NOV-2008 00:13:35.09): Ssh2/SSH2.C:1894: CRTL version (SYS$SHARE:DECC$SHR.EXE ident) is V7.3-2-03
debug(20-NOV-2008 00:13:35.09): SshAppCommon/SSHAPPCOMMON.C:313: Allocating global SshRegex context.
debug(20-NOV-2008 00:13:35.10): SshConfig/SSHCONFIG.C:3338: Metaconfig parsing stopped at line 4.
debug(20-NOV-2008 00:13:35.10): SshConfig/SSHCONFIG.C:855: Setting variable 'VerboseMode' to 'TRUE'.
debug(20-NOV-2008 00:13:35.11): SshConfig/SSHCONFIG.C:3246: Unable to open ssh2/ssh2_config
Type $1$dga1001:[sys0.syscommon.][sysexe]tcpip$ssh_ssh2.exe -h for help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2008 09:26 PM
тАО11-19-2008 09:26 PM
Re: SFTP setup on openVMS question
SUNNY2$ ssh oracle@dotstosunpassdb ls
debug(20-NOV-2008 00:19:10.05): Connecting to dotstosunpassdb, port 22... (SOCKS not used)
debug(20-NOV-2008 00:19:10.05): Ssh2/SSH2.C:2860: Entering event loop.
debug(20-NOV-2008 00:19:10.07): Ssh2Client/SSHCLIENT.C:1609: Creating transport protocol.
debug(20-NOV-2008 00:19:10.07): SshAuthMethodClient/SSHAUTHMETHODC.C:95: Added "publickey" to usable methods.
debug(20-NOV-2008 00:19:10.07): SshAuthMethodClient/SSHAUTHMETHODC.C:95: Added "keyboard-interactive" to usable methods.
debug(20-NOV-2008 00:19:10.07): SshAuthMethodClient/SSHAUTHMETHODC.C:95: Added "password" to usable methods.
debug(20-NOV-2008 00:19:10.07): Ssh2Client/SSHCLIENT.C:1650: Creating userauth protocol.
debug(20-NOV-2008 00:19:10.07): client supports 3 auth methods: 'publickey,keyboard-interactive,password'
debug(20-NOV-2008 00:19:10.07): SshUnixTcp/SSHUNIXTCP.C:1683: using local hostname SUNNY2.to.dot.state.fl.us
debug(20-NOV-2008 00:19:10.07): Ssh2Common/SSHCOMMON.C:541: local ip = 156.75.155.40, local port = 62106
debug(20-NOV-2008 00:19:10.07): Ssh2Common/SSHCOMMON.C:543: remote ip = 10.100.34.190, remote port = 22
debug(20-NOV-2008 00:19:10.08): SshConnection/SSHCONN.C:2311: Wrapping...
debug(20-NOV-2008 00:19:10.08): SshReadLine/SSHREADLINE.C:3662: Initializing ReadLine...
debug(20-NOV-2008 00:19:10.08): Remote version: SSH-2.0-WeOnlyDo 2.0.6
debug(20-NOV-2008 00:19:10.09): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 2 to connection
debug(20-NOV-2008 00:19:10.09): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 20 to connection
debug(20-NOV-2008 00:19:10.09): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 2 to connection
debug(20-NOV-2008 00:19:10.09): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 30 to connection
debug(20-NOV-2008 00:19:10.09): Ssh2Transport/TRCOMMON.C:2306: lang s to c: `', lang c to s: `'
debug(20-NOV-2008 00:19:10.09): Ssh2Transport/TRCOMMON.C:2371: c_to_s: cipher aes128-cbc, mac hmac-sha1, compression none
debug(20-NOV-2008 00:19:10.09): Ssh2Transport/TRCOMMON.C:2374: s_to_c: cipher aes128-cbc, mac hmac-sha1, compression none
debug(20-NOV-2008 00:19:10.10): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 2 to connection
debug(20-NOV-2008 00:19:10.10): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 30 to connection
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the host key has just been changed.
Please contact your system administrator.
Add correct host key to "ssh2/hostkeys/key_22_dotstosunpassdb.pub"
(or remove the keyfile, and connect again.)
Received server key's fingerprint:
xofob-fogam-kebip-hiruz-cikiz-nepoc-mytoh-sotuh-labov-zygev-lixax
You can get a public key's fingerprint by running
$ ssh_keygen "-F" publickey.pub
on the keyfile.
Agent forwarding is disabled to avoid attacks by corrupted servers.
X11 forwarding is disabled to avoid attacks by corrupted servers.
debug(20-NOV-2008 00:19:10.24): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 2 to connection
debug(20-NOV-2008 00:19:10.24): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 21 to connection
debug(20-NOV-2008 00:19:10.24): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 2 to connection
debug(20-NOV-2008 00:19:10.24): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 5 to connection
debug(20-NOV-2008 00:19:10.25): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 2 to connection
debug(20-NOV-2008 00:19:10.25): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 50 to connection
debug(20-NOV-2008 00:19:10.25): Ssh2Common/SSHCOMMON.C:342: Received SSH_CROSS_STARTUP packet from connection protocol.
debug(20-NOV-2008 00:19:10.25): Ssh2Common/SSHCOMMON.C:392: Received SSH_CROSS_ALGORITHMS packet from connection protocol.
debug(20-NOV-2008 00:19:10.25): server offers auth methods 'password,publickey'.
debug(20-NOV-2008 00:19:10.26): SshConfig/SSHCONFIG.C:3246: Unable to open ssh2/identification
debug(20-NOV-2008 00:19:10.30): Ssh2AuthClient/SSHAUTHC.C:366: Method 'publickey' disabled.
debug(20-NOV-2008 00:19:10.30): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 2 to connection
debug(20-NOV-2008 00:19:10.30): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 50 to connection
debug(20-NOV-2008 00:19:10.30): server offers auth methods 'password,publickey'.
oracle's password: 0:19:10.30): Ssh2AuthPasswdClient/AUTHC-PASSWD.C:280: Starting password query...
debug(20-NOV-2008 00:19:19.12): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 2 to connection
debug(20-NOV-2008 00:19:19.12): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 50 to connection
debug(20-NOV-2008 00:19:19.13): server offers auth methods 'password,publickey'.
oracle's password: 0:19:19.13): Ssh2AuthPasswdClient/AUTHC-PASSWD.C:280: Starting password query...
debug(20-NOV-2008 00:19:21.06): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 2 to connection
debug(20-NOV-2008 00:19:21.06): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 50 to connection
debug(20-NOV-2008 00:19:21.07): server offers auth methods 'password,publickey'.
oracle's password: 0:19:21.07): Ssh2AuthPasswdClient/AUTHC-PASSWD.C:280: Starting password query...
debug(20-NOV-2008 00:19:21.59): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 2 to connection
debug(20-NOV-2008 00:19:21.59): Ssh2Transport/TRCOMMON.C:1105: Sending packet with type 50 to connection
debug(20-NOV-2008 00:19:21.60): Ssh2Common/SSHCOMMON.C:180: DISCONNECT received: Too many attempts.
debug(20-NOV-2008 00:19:21.60): SshReadLine/SSHREADLINE.C:3728: Uninitializing ReadLine...
warning: Authentication failed.
debug(20-NOV-2008 00:19:21.60): Ssh2/SSH2.C:320: locally_generated = FALSE
Disconnected; protocol error (Too many attempts.).
debug(20-NOV-2008 00:19:21.60): Ssh2Client/SSHCLIENT.C:1685: Destroying client.
debug(20-NOV-2008 00:19:21.60): SshConfig/SSHCONFIG.C:2794: Freeing pki. (host_pki != NULL, user_pki = NULL)
debug(20-NOV-2008 00:19:21.60): SshConnection/SSHCONN.C:2363: Destroying SshConn object.
debug(20-NOV-2008 00:19:21.60): Ssh2Client/SSHCLIENT.C:1753: Destroying client completed.
debug(20-NOV-2008 00:19:21.60): SshAuthMethodClient/SSHAUTHMETHODC.C:100: Destroying authentication method array.
debug(20-NOV-2008 00:19:21.63): SshAppCommon/SSHAPPCOMMON.C:326: Freeing global SshRegex context.
debug(20-NOV-2008 00:19:21.63): SshConfig/SSHCONFIG.C:2794: Freeing pki. (host_pki = NULL, user_pki = NULL)
SUNNY2$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2008 09:45 PM
тАО11-19-2008 09:45 PM
Re: SFTP setup on openVMS question
> me why I am getting this msg , and why is
> it showing the directory structure as unix
> style..is it normal ? where is he saving
> the key?
>
> Host key saved to
> ssh2/hostkeys/key_22_dotstosunpassdb.pub
This happens the first time you connect to
any host, when its host key is stored. It's
in UNIX form because the software was ported
from UNIX, and the CRTL can work with
UNIX-format file specs, so it was easier to
leave it that way. The file should be found
in the [.SSH2.HOSTKEYS] directory under your
SYS$LOGIN directory.
> I think my ssh configuration is not good
> [...]
http://h71000.www7.hp.com/doc/index.html
http://h71000.www7.hp.com/doc/tcpip56.html
http://h71000.www7.hp.com/doc/tcpip54.html
http://h71000.www7.hp.com/doc/732final/aa-rvbua-te/aa-rvbua-te.html
> I dont have any IDENTIFICATION file [...]
Apparently:
debug(20-NOV-2008 00:19:10.26): SshConfig/SSHCONFIG.C:3246: Unable to open ssh2/identification
You'll probably want one of those.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2008 10:36 PM
тАО11-19-2008 10:36 PM
Re: SFTP setup on openVMS question
******** openVMS public key ***************
---- BEGIN SSH2 PUBLIC KEY ----
Subject: oracle
Comment: "2048-bit dsa, oracle@SUNNY2.to.dot.state.fl.us, Thu Nov 20 2\
008 06:14:49"
AAAAB3NzaC1kc3MAAAEBAPr8zUzYOjF4gOGju/6sE55iG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