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 Authenticate

KevDog wrote:

Can WinScp work with the cygwin ssh-keygen generated keys placed in the authorized_keys file? Ive been unsuccessful thus far.

I believe that it can work with them, if you convert the private key file to Putty format.
KevDog

Unable to Authenticate

My hopes were to get away from using Putty or the PuttyKey Gen tool if possible. I can confirm that WinSCP will work with the putty generated keys placed into the authorized_keys2 file. Can WinScp work with the cygwin ssh-keygen generated keys placed in the authorized_keys file? Ive been unsuccessful thus far.

Thanks
martin

Re: Unable to Authenticate

You need to convert your OpenSSH key to Putty format using Puttygen tool.
KevDog

Unable to Authenticate

Thanks for the great program -- Im having problems authenticating.

My system: SSH server - cygwin with password authentication disabled.
WinSCP Version 3.5.6 (Build 213).

Im trying to use winscp without putty. I created the ssh private and public key pairs via ssh-keygen utility. I created 2048 bit rsa encrypted keys without any passwords. I then created the authorized_keys2 file via cat id_rsa.pub >> authorized_keys2.

I verified that from the bash cygwin shell I can ssh to the ssh server.

When trying to use winscp I chose to use the id_rsa key as the private key. I received the following from the log file:

. Login time: Saturday, April 24, 2004 12:21:10 PM
. --------------------------------------------------------------------------
. Session name: Administrator@gohilton.com
. Host name: gohilton.com (Port: 22)
. User name: Administrator (Password: No, Key file: Yes)
. Transfer Protocol: SFTP (SCP)
. SSH protocol version: 2; Compression: No
. Agent forwarding: No; TIS/CryptoCard: No; KI: Yes
. Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. SSH Bugs: -,-,-,-,-,-,-,-,
. Proxy: none
. Return code variable: Autodetect; Lookup user groups: Yes
. Shell: default, EOL: 0
. Local directory: default, Remote directory: home, Update: No, Cache: Yes
. Cache directory changes: Yes, Permanent: Yes
. Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. --------------------------------------------------------------------------
. Looking up host "gohilton.com"
. Connecting to 10.9.232.100 port 22
. Server version: SSH-1.99-OpenSSH_3.7.1p2
. We claim version: SSH-2.0-WinSCP-release-3.5.6
. Using SSH protocol version 2
. Doing Diffie-Hellman group exchange
. Doing Diffie-Hellman key exchange
. Host key fingerprint is:
. ssh-rsa 1024 74:96:9d:0a:cc:4b:d4:29:f1:d4:fb:b1:c7:99:51:12
. Initialised AES-256 client->server encryption
. Initialised AES-256 server->client encryption
! Using username "Administrator".
. Reading private key file "C:\cygwin\home\Administrator\.ssh\id_rsa"
. Unable to use this key file (OpenSSH SSH2 private key)
! Unable to use key file "C:\cygwin\home\Administrator\.ssh\id_rsa" (OpenSSH SSH2 private key)
. Keyboard-interactive authentication refused
! No supported authentication methods left to try!
. No supported authentications offered. Disconnecting
* (ESshFatal) Authentication failed.
* Authentication log (see session log for details):
* Using username "Administrator".
* Unable to use key file "C:\cygwin\home\Administrator\.ssh\id_rsa" (OpenSSH SSH2 private key)* No supported authentication methods left to try!
*
* Connection has been unexpectedly closed. Server sent command exit status 0.

Im really confused about not being able to use the id_rsa private key file.

Any ideas???