Page 1 of 1

Demo SSH server problem

Posted: Wed 23 Jun 2010 06:23
by ollig
Hi, i'm Olli Garbini.
We are trying to make SSH Client - Server, but i found some problems during implementation:

1. I install SSHServerService but it always stop when i started with the message"...Some service stop automatically if they have no work to do...".
2. Then i try another demos, SSHServer.exe and SSH Client. I start the server with user & password, SSH port = 22. Then i run SSH Client with
SSH port=22 & SSH dest = 23. The error message "Socket error on connecting. WSAGetLastError return 10061($274D)".

Do you have any idea how to solve this problems?

Thanks for attention

Olli Garbini

Posted: Wed 23 Jun 2010 13:41
by Dimon
Please use the SimpleSSHServer demo.
Check that "Port for listening" is set to 22.
Start SSH server by pressing the "Start server" button.
If no error arises, try to run SSH Client.

Posted: Thu 24 Jun 2010 09:50
by ollig
I try to use Simple SSH server demo and SSHClient. I got the error message "The authenticity ofserver can not be verified" then Authentication failed.
Then i try using Putty as SSH Client and i also receive error message "The server's host key doesn't match...".

Do you have any suggestion

Thanks

Olli garbini

Posted: Thu 24 Jun 2010 10:07
by Dimon
To connect use Username "test" and Password "test". Or you can create new user on SSH server and use it.

Posted: Thu 24 Jun 2010 11:33
by ollig
I have already tried as your suggestion but the error message "Authentication failed" appear.
Then i debug the source code and i got the error message "socket closed, can not receive data".

What is your suggestion?

Thanks

Olli Garbini

Posted: Thu 24 Jun 2010 14:40
by Dimon
Please try to change Port on the server and client (for example to 25). Also add a new user to SSH server and use it on the client.