Add external application pattern for private key file

Advertisement

braykov
Joined:
Posts:
94

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,276
Location:
Prague, Czechia

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?

Reply with quote

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?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,276
Location:
Prague, Czechia

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).

Reply with quote

Advertisement

braykov
Joined:
Posts:
94

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@!@

Reply with quote

braykov
Joined:
Posts:
94

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.

Reply with quote

martin
Site Admin
martin avatar

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.

Reply with quote

Advertisement

braykov
Joined:
Posts:
94

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?

Reply with quote

Advertisement

You can post new topics in this forum