Topic "Unable to Authenticate"

Author Message
KevDog

Guest


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???
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
You need to convert your OpenSSH key to Putty format using Puttygen tool.
_________________
Martin Prikryl
KevDog

Guest


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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
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.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License