KpyM Telnet/SSH Server - Forum
|Run server NOT as service?
||Run server NOT as service?
||Feb 12 2007 19:43
I would like to run the SSH server, but in my instance I can not run it as a service. I have another application that controls execution of EXE processes and would just like to run it this way.
I know this is an odd request.
||Feb 13 2007 14:28
There is no good way to run KTS as standalone app, the reason is that in windows an application needs to have system privileges to validate another user password and to start a program as another user.
However there is "debug" mode that allows you to run KTS as standart application, as it name says I use it to debug KTS so I can strongly recommend you NOT to use KTS that way.
Anyway if you still want to use KTS in debug mode here is what you need to do:
1) as there is no way KTS to validate passwords you need to implement your own password authentication
in the file: .\scripts\allusers.bat place these lines
|set /p passphrase=Enter passphrase:
if not "%passphrase%" == "log_me_in" exit
this will prompt the user "Enter passphrase:" and exit session if he doesn't enter the correct one, log_me_in in this case.
2) it is good to disable ctrl+c, or someone could skip the custom pass protection by pressing ctrl+c
in file: .\telnet.ini set
3) and now as we don't validate passwords we don't need the pass prompt.
To disable it in file: .\kts.ini set
|default_pass = sdfsdf |
4) finally start KTS in "debug" mode by typing:
© 2007 - 2008 Kroum Grigorov