SSH/SCP with Key Auth from windows to Linux box

Advertisement

webwarrior
Joined:
Posts:
1

SSH/SCP with Key Auth from windows to Linux box

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

Re: SSH/SCP with Key Auth from windows to Linux box

I do not understand how this is connected to WinSCP?
Anyway I have no hint for you, sorry :-(

Reply with quote

Advertisement

You can post new topics in this forum