Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

So you have kitty.ini file to force KiTTY not to use registry, correct?
braykov

But you said:

martin wrote:

I do not think you need to install KiTTY to make it use registry.

Yet, my KiTTY portable is not reading the registry. A portable app has exactly this idea - to not depend on registry and system-related folders.

So what is the solution, then? How do I make it get the session info from the registry?
martin

braykov wrote:

OK, so how do I make WinSCP pass the session private key to KiTTY?

WinSCP does not have a way to pass a private key to PuTTY/KiTTY command-line. Only via registry.
braykov

OK, so how do I make WinSCP pass the session private key to KiTTY?
This is still my client path:
C:\kitty\kitty.exe -xpos 926 -ypos 0 -title ""!N" - "!@"" -cmd "cd '!/'" !U@!@


I need this because as you see, I set other parameters to KiTTY, like window position.
martin

I do not think you need to install KiTTY to make it use registry.
braykov

I am in a corporate environment. For several reasons KiTTY is not installed but rather used in portable mode.
And this is how I open it from WinSCP:
C:\kitty\kitty.exe -title ""!N" - "!@"" -cmd "cd '!/'" !U@!@
martin

Re: Add external application pattern for private key file

braykov wrote:

Because it is passing the password and I need it passing the key that it set in the connection. It is not doing that. Or am I doing it wrong?

It should pass everything.

braykov wrote:

Also I am using KiTTY and it is not using the registry.

KiTTY can use registry too (unless you configured it not to).
braykov

Also I am using KiTTY and it is not using the registry.
braykov

Re: Add external application pattern for private key file

Because it is passing the password and I need it passing the key that it set in the connection. It is not doing that. Or am I doing it wrong?
martin

Re: Add external application pattern for private key file

Why do you need to use a full command-line. Why don't you just let WinSCP provide complete session settings via registry?
braykov

Add external application pattern for private key file

I can currently open a PuTTY/KiTTY terminal for current connection passing the username and password.
However, for many sites I just have the private key.
While I can add those keys to Pageant/Kageant, our servers are set to reject connection after 3 failed key attempts.
With this feature request, WinSCP would allow me to pass the relevant private key that is used with the current connection to KiTTY's parameter -i.