|
KiTTY : ForumLast modification : - |
|
|
|---|---|---|
| Welcome / Recent changes / News / Forum / Download / Contacts | Edit | |
putty:// and Kitty:// links
michael - Mon 30/05/2011 09:33:49 CEST +0200
I've set up the registry to direct these links to the kitty.exe, but the links are only opening to the session selection screen. running the same command
(eg "c:\Program Files (x86)\PuTTY\kitty.exe" -load "//STL-SW-ACCESS01" from the command line successfully opens these sessions. Are there any changes I need to make to get this working properly? Cyd - Mon 30/05/2011 10:39:22 CEST +0200
Try to load a session without // in its name.
michael - Tue 31/05/2011 03:36:23 CEST +0200
That also works. I've got saved sessions both with and without the leading // in their names at the moment.
PST/XD - Thu 23/08/2012 19:56:00 CEST +0200
Trying to use SSH Handler (KiTTY 0.62 on Win7/64), I encounter the same problem :
CMD: C:\Program Files (x86)\KiTTY>kitty.exe -load BUILD ==> open terminal and log in (BUILD beeing a saved session) IE: ssh://BUILD ==> KiTTY Error : BUILD Host does not exist Where as SSH Handler seems to use the same syntax than cmd line : [HKEY_CLASSES_ROOT\kitty\shell\open\command] @="\"C:\Program Files (x86)\KiTTY\kitty.exe\" -load \"%1\"" Other trials : IE: ssh://my.server.dns ==> open terminal but prompt for user/password IE: ssh://user@my.server.dns ==> open terminal with specified user but prompt for password So, am I wrong somewhere ? Is there a way to use those smart KiTTY features ssh:// AND automatic user/pass login together ??? Thanx in advance Cyd - Thu 23/08/2012 22:14:17 CEST +0200
ssh:// needs a hostname or user@hostname
putty:// needs an existing session name (like -load option) PST/XD - Fri 24/08/2012 12:56:13 CEST +0200
Thanx Cyd for your quick answer, so I messed up between ssh:// and putty://, but still I don't catch the point :
0) CMD: C:\Program Files (x86)\KiTTY>kitty.exe -load BUILD ==> open terminal and log in (BUILD being a saved session): OK 1) CMD: C:\Program Files (x86)\KiTTY>kitty.exe -sshhandler ==> carriage return but no message : OK ? 2) IE: putty://BUILD ==> Page Not Found : OK, as sshhandler does not register this protocol 2) IE: kitty://BUILD ==> Open up Kitty :-) but in the Configuration window, no auto log of 'BUILD' session 3) check in regedit: seems OK [HKEY_CLASSES_ROOT\kitty\shell\open\command] @="\"C:\Program Files (x86)\KiTTY\kitty.exe\" -load \"%1\"" Do you guess what's wrong in my operation ? Thanx in advance jems - Fri 24/08/2012 15:08:03 CEST +0200
Hi,
What PST/XD means, is that we would like tu be able to use urls such as ssh://user:pass@host:port (yes, with the password in the url, this is for internal use only, and we are very well aware of the risks). I can propose this patch in window.c } else if (!strncmp(q, "ssh:", 4)) { /* * If the hostname starts with "ssh:", * set the protocol to SSH and process * the string as a SSH URL */ char c; char *pch; char *u; // user:pass pointer q += 4; if (q[0] == '/' && q[1] == '/') q += 2; cfg.protocol = PROT_SSH; p = q; if (pch=strchr(p,'@')) { /* * this is a user@host url, maybe user:pass@host */ if (*pch) *pch++ = '{CONTENT}'; while (*p && *p != ':' && *p != '/') p++; c = *p; if (*p) *p++ = '{CONTENT}'; if (c == ':') cmdline_password = dupstr(p); cmdline_pwd(cmdline_password); strncpy(cfg.username, q, sizeof(cfg.username) - 1); } else pch = p; h=pch; while (*pch && *pch != ':' && *pch != '/') pch++; c = *pch; if (*pch) *pch++ = '{CONTENT}'; if (c == ':') cfg.port = atoi(pch); else cfg.port = -1; strncpy(cfg.host, h, sizeof(cfg.host) - 1); cfg.host[sizeof(cfg.host) - 1] = '{CONTENT}'; got_host = 1; } else if (!strncmp(q, "putty:", 4)) { int ret = 0; q += 6; if (q[0] == '/' && q[1] == '/') q += 2; if (q[strlen(q) - 1] == '/') q[strlen(q) - 1] = '{CONTENT}'; p = q; ret = cmdline_process_param("-load", p, 1, &cfg); assert(ret == 2); } else { and in cmdline.c void cmdline_pwd(char *pwd) { cmdline_password = dupstr(pwd); } I am not a C developper, so the code may very well be enhanceable... Please tell use wether that could be included ? Regs, Jeremy jems - Fri 24/08/2012 15:31:34 CEST +0200
char *u; by the way.
Trevor North - Sat 28/02/2015 14:52:24 CET +0100
I have the same issue as Michael but with the latest version kitty 0.63.2.2 and I dont see from the previous responses a resolution.
I have run the registry edit from the ssh handler page and can connect to the telnet session via the link provided. I have my own session defined in kitty and saved with a session name of just the hostname and the FQDN (i.e. hostname.domain.net) If i run kitty at the command line with the following it logs in directly (using ssh private keys so no password prompts) kitty.exe -load "hostname" kitty.exe -load "hostname.domain.net" If i run IE11 and go to URLs, it opens kitty but doesnt load or start the session using the named profile putty://hostname putty://hostname.domain.net Is there something else i have to do or configure in kitty to get this to work ? One thing i noted is IE does add a forwardslash to the end of the URL automatically but it doesnt seem to matter if i add a / to the session name, still doesnt load the profile. Trevor North - Sat 28/02/2015 15:16:04 CET +0100
I tried another way, with ssh:// using following link
ssh://user@hostname.domain.net This successfully logged in to the host using the private key but i have no idea how. I dont have a session in kitty called hostname.domain.net so how did it manage to find it ? I tried with another host and that one just hangs. Would be great if someone can advise how this works and maybe add some more details to the ssh handler page. Thanks in advance Trevor Cyd - Mon 29/06/2015 13:11:54 CEST +0200
The handler putty://sessionname search for a session in the registry.
The handler ssh://user@hostname simply start a connection at user@hostname with the default settings. Marek - Thu 21/01/2016 07:59:25 CET +0100
Hi,
I have three screens, and xpos seems to be limited to some maximum value. Any Ideas? Answer |
||
|
Wiki utilisant PumaWiki 1.0, merci aux membres de la PuTTY Team 2026/06/14 05:45 -- en -- 216.73.217.117 -- |
||