Dear Developers,

Does any one know the status of the SSHD project? I just checked out the
trunk and could not get anything to work. I was able to start the server,
but could not get the client (putty, FileZilla) to connect successfully.
Here are my findings so far:

I'm trying to run the SshServer class with some minor modifications to the
main() method. I used one of my own SSH key pair (RSA 1024) protected by a
password. The server errors out when trying to read this key file (PEMReader
from BC). Below is the key I tried to use and I'm pretty sure it is not
corrupt.

-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,0fce5d69033b21d6

l9q5wkeeOiDUyDAVlDmbofyUrUFB+GrI3Q2xcrRWNsHqz2kJAYJA7H5WhfAcDzU2
JxyN+wzF0Dz4lWMzEPB1s1BSkMSc1G4FIjk9QozRl9Yp6427Zbe7JuPrem1V+grB
zB8udkFMw+QAVLCx6zw63ugO9hi5ePwm98AHwDL2VXgvRChHFosgX8suDVbke33o
RFNEYowjpvZr6C0EFyIJ1oGx8mbx+unvrknZWEkvoYTK6oy23cPAW7iiIeNdEOOR
806N/jv/3Ch7xQrJriPB1LqgJTkEBdY+IUvIk2xB1HKy7RLSqfkqFqSN/JdRNj7K
7VWoWBkWi/58/CnD/ftChFU7WbY2dbhriNo1bgsJrhtgotKnpYaXgI+ikQkJdIWj
rg0Pa8WhrH6Z01b329iUshKV3WS8bNdrRx/yToAEBm4JfBOYutMEWvZRbUevdyIr
Ad5a3ZO+nCGlQ/u4AU/28+uTb5BgBc3jhj8UNTN2EESYA8viYhjewQzE7kihrsaF
S/AQkbRKBMzblIGHaJ+hBcA4AYUPTqwfAlkiZHJepX/NdmKSbFJSowRdktFvJ0eW
i2fBAM3Ypw2gN+TzQVy6zAbKAcF01SXl4lrdOgJVflZUDaIVmnFnvGMoyh1NRBYU
X/GQq4dBOy5b1+cXizuaDTiyp7oZ1OpzMwwZXbkUC6BWYYJatfz8NZczPXKFPsW2
alqQncD0o6+JOjn/pEW47PCdga6x+D5hGAI+2iJSm9ot7iW7oIpzJlPv11zzK3VX
NgeWuhgILybxar2Jva6xVSXSxFnjqs/Y38L0hAzjM62qoNR3ZOL8nQ==
-----END RSA PRIVATE KEY-----

The error/exception is:
Unable to read key ssh_host_rsa_key: java.io.IOException: problem creating
RSA private key: java.io.IOException: exception using cipher - please check
password and data: javax.crypto.IllegalBlockSizeException: last block
incomplete in decryption

Then I used the sample key that was used in the JUnit test cases and the
server was able to read that key with no issues. However, that key is not
password protected.

I used the same dummy password authenticator that the main method
has...which lets users in if user name and password are same. I did see that
the client authenticates successfully using the password authentication, but
that is it. I can not do much after that (or I do not know what else can be
done).

Also what does the line of code below do:

sshd.setShellFactory(new ProcessShellFactory(new String[] { "/bin/sh", "-i",
"-l" }));

It definitely looks like a *NIX specific. Is the SSHD designed for Windows
as well? If so what is the equivalent for Windows?

While quickly scanning through the code I did not see any support for SFTP.
Is this correct?

Thnaks and Regards,

Sai Pullabhotla
Phone: (402) 408-5753
Fax: (402) 408-6861
www.jMethods.com

Reply via email to