I'm trying to setup SSH on all of our new scanners, and since much of what we do is scripted, I need to setup the keys so that they do not use passwords. I have this working fine on the scanners we have running on Linux since it's OpenSSH connecting to OpenSSH. Where I'm having problems is on the scanners we have running on Windows servers, which are running "Reflection_14.0.851, SSH protocols 1.5/2.0, Reflection SSC Crypto Module 1.0.170".
I'm using a MacBook Pro running OS X 10.8 for my client side, which is running "OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011". My client side is setup in ~/.ssh, and here is what that looks like:
$ ls -l .ssh
-rw------- 1 xxxxxxx staff 1675 Aug 28 12:36 id_rsa
-rw-r--r-- 1 xxxxxxx staff 405 Aug 28 12:36 id_rsa.pub
-rw-r--r-- 1 xxxxxxx staff 410 Aug 28 13:46 known_hosts
The keys were created using ssh-keygen -t rsa on the client, and the password and confirmation were blank. I then copied my public key to one of the Windows scanners. I followed the Reflection documentation for my SSH setup on the Win box. This is where I suspect something went wrong, but I can't figure out where. On the Win host, I created ~/.ssh2 and used Cygwin to chmod the directory to 700. My public key I had copied to my home directory, and I ran this command to convert the key to the Reflection format, and get it into the ~/.ssh2 directory. ssh-keygen -e -f id_rsa.pub > .ssh2/id_rsa_r.pub. I then created the file ~/.ssh2/authorization. The contents of authorization is:
When I try to connect to this host from my Mac, I am still getting prompted for a password, so I know something isn't right.
If anyone can provide any insight, or help into what I need to do to get this working correctly, I would greatly appreciate it. Here are links to the Reflection documents I used:
Any and all help is greatly appreciated.