Topic "SSH/SCP with Key Auth from windows to Linux box"

Author Message
webwarrior
[View user's profile]

Joined: 2004-03-18
Posts: 1
We are having an issue using SCP/SSH on Windows to Linux

When I run SCP from the command line using key authentication, everything works fine.
When we run it from perl script, the following happens (running on windows 2000, connecting to Linux host)

debug3: Not a RSA1 key file c:\\cygwin\\home\\root\\id_dsa.
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
debug2: key_type_from_name: unknown key type '-----END'


What's odd is that the script worked fine until we moved both servers to a new network and new ip addresses.

I really don't think the new network and ip addresses are causing this since we can do it manually.

I have RSA and DSA auth enabled in the sshd_config file on the Linux server.

Here is the manual command, it works fine

$ scp -i id_dsa POOP saleskit@ns2.blah.com:/home/saleskit
POOP 100% 0 0.0KB/s 00:00

I have only seen this error when trying to ssh/scp from windows to linux (from command line). If I take the same keys and place them on a linux workstation, and then connect to another linux box, the keys work.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
I do not understand how this is connected to WinSCP?
Anyway I have no hint for you, sorry Sad
_________________
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