|
KiTTY : ForumLast modification : - |
|
|
|---|---|---|
| Welcome / Recent changes / News / Forum / Download / Contacts | Edit | |
command line feature request
Vic - Sat 04/09/2010 22:12:55 CEST +0200
Hello
Could you add command line option to execute command on server after logon? For example: kitty.exe root@192.168.1.1 -c "uname -a" (openssh lets set command simply after connection string) Yes, I know, I can set command in GUI but I need in in CLI And also, could you add option to suppress all security alerts about ssh keys? For example: kitty.exe root@192.168.1.1 -y (openssh lets set -o StrictHostKeyChecking=no) Thank you for reply PS I downloaded source codes, but how can I build kitty? (if you can't add those features for me in nearest future) Vic - Tue 07/09/2010 20:45:03 CEST +0200
I've got answer by email:
Someone has already started the implementation of this feature, but it is not in the official release. Get that pre-build: http://www.9bis.net/kitty/data/beta/kitty.exe Apparently the option is -cmd (but I have never tested it yet). I can't say if this feature will be in the next official release (that is planed for next week). Cyd I've tried this beta version, and it works (yes it works), but not as I expected - command executes after logon, as I login by myself.. I mean, if I login and type command -> it executes and I stay logged in. I want a bit different behavior: just as openssh -> after command executes connection lost, like this: ============================================== C:\>ssh root@server "uname -sr" FreeBSD 8.1-STABLE C:\> ============================================== I added this feature to original PuTTY very easy! Code: if (!strcmp(p, "-c")) { RETURN(2); UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER | TOOLTYPE_NONNETWORK); SAVEABLE(0); cfg->remote_cmd_ptr = value; } from line 339 in file cmdline.c Cyd - Wed 08/09/2010 12:30:59 CEST +0200
So what you need is plink.exe (or klink.exe).
The feature already exists with plink. Vic - Thu 09/09/2010 00:53:41 CEST +0200
So.. I think may be you are right. This behavior like plink. But I need putty window...
And what about manual to build KiTTY? I need also to suppress all security alerts and I think you won't do it (like PuTTY team) Vic - Sat 11/09/2010 16:47:32 CEST +0200
Got answer by email
To build KiTTY, you need MinGW. Into Putty/windows directory there is a make file. To compile the syntax is make -f MAKEFILE.MINGW putty.exe make -f MAKEFILE.MINGW portable Thanks a lot, I'll try to do this Answer |
||
|
Wiki utilisant PumaWiki 1.0, merci aux membres de la PuTTY Team 2026/06/22 00:03 -- en -- 216.73.217.18 -- |
||