Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: unable to connect from windows to unix(ssh2)

saileshkumaryadav wrote:

I am trying to establish a passwordless connection from windows to unix(ssh2) through sftp. but it is failing. below is the log file..

What did you do to setup the public key authentication?

Also, upgrade to the latest version of WinSCP.
saileshkumaryadav

unable to connect from windows to unix(ssh2)

I am trying to establish a passwordless connection from windows to unix(ssh2) through sftp. but it is failing. below is the log file..

Any help would be greatly appreciated..

Below is the log file..

. 2017-04-07 23:27:28.015 --------------------------------------------------------------------------
. 2017-04-07 23:27:28.015 WinSCP Version 5.7.6 (Build 5874) (OS 6.1.7601 Service Pack 1 - Windows 7 Enterprise)
. 2017-04-07 23:27:28.015 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2017-04-07 23:27:28.015 Log level: Normal
. 2017-04-07 23:27:28.015 Local account: ASIA\zkvc6vb
. 2017-04-07 23:27:28.015 Working directory: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\SSH TOOLS
. 2017-04-07 23:27:28.015 Process ID: 52324
. 2017-04-07 23:27:28.015 Command-line: "C:\Program Files (x86)\SSH Tools\WinSCP.exe"
. 2017-04-07 23:27:28.015 Time zone: Current: GMT+5:30 (India Standard Time), No DST
. 2017-04-07 23:27:28.016 Login time: Friday, April 07, 2017 11:27:28 PM
. 2017-04-07 23:27:28.016 --------------------------------------------------------------------------
. 2017-04-07 23:27:28.016 Session name: rftp@tx8xdinf01 (Site)
. 2017-04-07 23:27:28.016 Host name: tx8xdinf01 (Port: 22)
. 2017-04-07 23:27:28.016 User name: rftp (Password: No, Key file: Yes)
. 2017-04-07 23:27:28.016 Tunnel: No
. 2017-04-07 23:27:28.016 Transfer Protocol: SFTP
. 2017-04-07 23:27:28.016 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2017-04-07 23:27:28.016 Disable Nagle: No
. 2017-04-07 23:27:28.016 Proxy: none
. 2017-04-07 23:27:28.016 Send buffer: 262144
. 2017-04-07 23:27:28.016 SSH protocol version: 2; Compression: No
. 2017-04-07 23:27:28.016 Bypass authentication: No
. 2017-04-07 23:27:28.016 Try agent: Yes; Agent forwarding: Yes; TIS/CryptoCard: No; KI: No; GSSAPI: No
. 2017-04-07 23:27:28.016 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2017-04-07 23:27:28.016 KEX: dh-gex-sha1,dh-group14-sha1,dh-group1-sha1,rsa,WARN
. 2017-04-07 23:27:28.016 SSH Bugs: A,A,A,A,A,A,A,A,A,A,A,A
. 2017-04-07 23:27:28.016 Simple channel: Yes
. 2017-04-07 23:27:28.016 Return code variable: Autodetect; Lookup user groups: A
. 2017-04-07 23:27:28.016 Shell: default
. 2017-04-07 23:27:28.016 EOL: 0, UTF: 2
. 2017-04-07 23:27:28.016 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2017-04-07 23:27:28.016 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2017-04-07 23:27:28.016 SFTP Bugs: A,A
. 2017-04-07 23:27:28.016 SFTP Server: default
. 2017-04-07 23:27:28.016 Local directory: default, Remote directory: /abc/SrcFiles/DQ_QUALITY, Update: Yes, Cache: Yes
. 2017-04-07 23:27:28.016 Cache directory changes: Yes, Permanent: Yes
. 2017-04-07 23:27:28.016 DST mode: 1
. 2017-04-07 23:27:28.016 --------------------------------------------------------------------------
. 2017-04-07 23:27:28.112 Looking up host "tx8xdinf01"
. 2017-04-07 23:27:28.120 Connecting to 171.202.32.57 port 22
. 2017-04-07 23:27:28.674 Server version: SSH-2.0-6.3.3.81 SSH Tectia Server
. 2017-04-07 23:27:28.675 Using SSH protocol version 2
. 2017-04-07 23:27:28.675 We claim version: SSH-2.0-WinSCP_release_5.7.6
. 2017-04-07 23:27:28.953 Doing Diffie-Hellman group exchange
. 2017-04-07 23:27:29.577 Doing Diffie-Hellman key exchange with hash SHA-256
. 2017-04-07 23:27:29.913 Verifying host key rsa2 0x10001,0xcddd8807434b2db2 027feda453f539dc 762da0bd869e92cc ad1e3d93860f5fb2 24a5d33199daa584 30a28cf2e55df719 a0dc2cb73baafdda ec70d774f6665cfc e874efdbdf97c790 6e6c7c9e4c63c3c9 232fc3a1cef0d289 3cda15f4b1e9305a 432317c0a13feea1 f0f49618d5840ecb a89ff9538c99f10e d65c2b5b2c4003e1 365f5416371f4e8f 6ce966ff76af6e99 d1781cf149d9658e ffec7de78dae908d 4919ca3631ce6430 8e457d987ac8a02d 357071c952eae1dd 52078e93d21fc169 bae26989937390e6 86fa8bbac7b55c4e 94d619da1da1055b 6105a4e598af6903 dc29446ee5ec83d8 8252a43c33167211 73b202bcfd8b89ce 046c3b3d359a88e1 with fingerprint ssh-rsa 2048 15:c0:f2:df:14:72:12:59:54:15:63:ac:cb:ed:cd:f6
. 2017-04-07 23:27:29.915 Host key matches cached key
. 2017-04-07 23:27:29.915 Host key fingerprint is:
. 2017-04-07 23:27:29.915 ssh-rsa 2048 15:c0:f2:df:14:72:12:59:54:15:63:ac:cb:ed:cd:f6
. 2017-04-07 23:27:29.915 Initialised AES-128 CBC client->server encryption
. 2017-04-07 23:27:29.915 Initialised HMAC-SHA1 client->server MAC algorithm
. 2017-04-07 23:27:29.915 Initialised AES-128 CBC server->client encryption
. 2017-04-07 23:27:29.915 Initialised HMAC-SHA1 server->client MAC algorithm
. 2017-04-07 23:27:30.508 Reading private key file "C:\test\keys\myprivatekey.ppk"
! 2017-04-07 23:27:30.511 Using username "rftp".
. 2017-04-07 23:27:33.893 Offered public key
! 2017-04-07 23:27:34.176 Server refused our key
. 2017-04-07 23:27:34.194 Server refused our key
. 2017-04-07 23:27:34.194 Disconnected: No supported authentication methods available (server sent: publickey,keyboard-interactive)
* 2017-04-07 23:27:34.254 (EFatal) Disconnected: No supported authentication methods available (server sent: publickey,keyboard-interactive)
* 2017-04-07 23:27:34.254 Authentication log (see session log for details):
* 2017-04-07 23:27:34.254 Using username "rftp".
* 2017-04-07 23:27:34.254 Server refused our key.
* 2017-04-07 23:27:34.254
* 2017-04-07 23:27:34.254 Authentication failed.