SFTP public key issue

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
Loganathan A
Posts: 1
Joined: Thu Mar 24, 2016 3:13 am

SFTP public key issue

Post by Loganathan A »

Hi Team,
Now we configured our mainframe public key to Unix team. While sending files from mainframe to unix we are getting below error.(We are using Cozbatch). Kindly help us to fix this issue asap. Thank you in Advance.
Co:Z SFTP version: 3.1.0 (5.0p1) 2015-05-01
Copyright (C) Dovetailed Technologies, LLC. 2008-2014. All rights reserved.
[26.798] debug3: connect_to_server arg=/bin/ssh
[26.798] debug3: connect_to_server arg=-oForwardX11 no
[26.798] debug3: connect_to_server arg=-oForwardAgent no
[26.798] debug3: connect_to_server arg=-oClearAllForwardings yes
[26.798] debug3: connect_to_server arg=-F/export/home/HEATFTP/.ssh/ssh_config
[26.798] debug3: connect_to_server arg=-C
[26.798] debug3: connect_to_server arg=-v
[26.798] debug3: connect_to_server arg=-v
[26.798] debug3: connect_to_server arg=-v
[26.798] debug3: connect_to_server arg=-obatchmode yes
[26.798] debug3: connect_to_server arg=-lGE500100345
[26.798] debug3: connect_to_server arg=-oProtocol 2
[26.798] debug3: connect_to_server arg=-s
[26.798] debug3: connect_to_server arg=3.40.5.100
[26.798] debug3: connect_to_server arg=sftp
OpenSSH_5.0p1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /export/home/HEATFTP/.ssh/ssh_config
debug1: Reading configuration data /etc/ssh/zos_ssh_config
debug3: Seeding PRNG from /usr/lib/ssh/ssh-rand-helper
debug1: zsshSmfSetConnSmfStatus: changing SMF status from 0 to 83
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug2: ssh_connect: needpriv 0
debug1: Connecting to 3.40.5.100 [3.40.5.100] port 22.
debug1: Connection established.
debug1: cipher_init: none from source OpenSSL
debug1: cipher_init: none from source OpenSSL
debug3: zsshGetpw: passwd name=HEATFTP, uid=999999901, gid=1, dir=/export/home/HEATFTP, shell=/bin/sh
debug3: Not a RSA1 key file /export/home/HEATFTP/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /export/home/HEATFTP/.ssh/id_rsa type 1
debug1: Remote protocol version 2.0, remote software version SecureLink SSH Server (Version 3.3.0.62)+
debug1: no match: SecureLink SSH Server (Version 3.3.0.62) debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.0
debug2: fd 3 setting O_NONBLOCK
debug3: RNG is ready, skipping seeding
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-
e-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour1
2-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour1
2-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd16
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd16
debug2: kex_parse_kexinit: zlib@openssh.com,zlib,none
debug2: kex_parse_kexinit: zlib@openssh.com,zlib,none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group1-sha1,diffie-hellman-group14-sh
group-exchange-sha256
debug2: kex_parse_kexinit: ssh-rsa
debug2: kex_parse_kexinit: aes128-cbc,3des-ctr,aes128-ctr,aes192-ctr,aes256-ctr
arcfour128,arcfour256
debug2: kex_parse_kexinit: aes128-cbc,3des-ctr,aes128-ctr,aes192-ctr,aes256-ctr
arcfour128,arcfour256
debug2: kex_parse_kexinit: hmac-sha256,hmac-md5,hmac-sha1,hmac-md5-96,hmac-sha1
debug2: kex_parse_kexinit: hmac-sha256,hmac-md5,hmac-sha1,hmac-md5-96,hmac-sha1
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug1: mac_setup_by_id: hmac-md5 from source OpenSSL
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-ctr hmac-md5 zlib
debug1: mac_setup_by_id: hmac-md5 from source OpenSSL
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-ctr hmac-md5 zlib
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 123/256
debug2: bits set: 489/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: check_host_in_hostfile: filename /export/home/HEATFTP/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 15
debug1: Host '3.40.5.100' is known and matches the RSA host key.
debug1: Found key in /export/home/HEATFTP/.ssh/known_hosts:15
debug2: bits set: 497/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: cipher_init: aes128-ctr from source OpenSSL
debug1: Enabling compression at level 6.
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: cipher_init: aes128-ctr from source OpenSSL
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /export/home/HEATFTP/.ssh/id_rsa (1055C980)
debug3: input_userauth_banner
gemft.sftp.gateway
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred publickey
debug3: authmethod_lookup publickey
debug3: remaining preferred:
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /export/home/HEATFTP/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
debug3: __catgets: NLS setup complete (1), using message catalog openssh.cat
FOTS1373 Permission denied (publickey).
[32.379] Connection closed
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: SFTP public key issue

Post by dovetail »

If you are posting a question on behalf of a customer with an Enterprise License Ageement, you need to submit a ticket through a designated support contact. This forum is not for formal support requests.
Post Reply