KpyM Telnet/SSH Server - Forum
MESSAGE_CAST in KTS v1.19 source
kevin MESSAGE_CAST in KTS v1.19 source
 
Hi Kroum,

I have downloaded the lastest version of KTS. I have a question about your hack code of cryptlib library.

I changed your hack code to CL333 and got the error "MESSAGE_CAST not defined" when compiling. Could you please give me more details on this? Any help will be appriciated.

Regards,
Kevin


Kroum Grigorov
 
I'm using the Visual Studio Express 2010 compiler, the cryptlib "hack" is tested to work on windows only and to compile with the VS compiler only. I do not know if this will work or compile with anything else.

To compile the CL333 with the kpym hack you have to get cl333 sources from Peter Gutmann's cryptlib page
l0c41://www.cs.auckland.ac.nz/~pgut001/cryptlib/

Then copy the files from KTS\sources\shared\cl-sources back to the original cryptlib source files(you have to place each file in the same subfolder the original file is located, thus replacing the original cl333 source files with the "hacked" ones) and recompile cryptlib with the two macros defined KPYM_HACK (this is for the kpym related stuff)
USE_SSH_EXTENDED (this is cryptlib def that enbles some ssh subsystems used in the kpym hack)



>got the error "MESSAGE_CAST not defined" when compiling
MESSAGE_CAST is defined in cryptkrn.h and is not part of the kpym hack, it looks to me that something got totally broken when you replaced the original cryptlib files.

Kroum


kevin
 
Hi Kroum,

Thank you very much. It is my mistake, the cryptlib I have download is not latest. After downloading the latest version, the compile goes well.

Regards,
Kevin


kevin
 
Hi Kroum,

Another question about public key authentication.
I have added a public key at the file "publickey_logon.ini" for a user. Then I added the private key to filezilla at "Edit->Settings->Connection->SFTP". I could login to the server successfully.
But when I added two or more SSH private key to the list of filezilla. I failed to connect.

Could you please give me more information? Thanks.

Regards,
Kevin


Kroum Grigorov
 
It seems FileZilla is trying to log you in using one by one all of the private keys hoping one of them will work.
This confuses KTS as it waits for just one publickey login attempt.
If the correct private key for the KTS host is on top of the FileZilla list this will work as it will be used in the first login attempt, if it is not on the top of the list KTS will error on the second publickey login attempt.

Kroum


 

© 2007 - 2008 Kroum Grigorov
Powered by phpBB © 2001, 2005 phpBB Group