Topic "Launch PuTTY Button"

Author Message
Guest




Currently (version 3.2.1), it is possible to open
a console. However, the console is fairly restrictive. Might it be possible to add a 'Launch
PuTTY' button? It could start a PuTTY session to
the current server, with as many of the same settings
as are appropriate --- perhaps it could even log you
on if you had provided a key for logon, for example.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
I'll try to add this feature in next release.
_________________
Martin Prikryl
Guest




prikryl wrote:
I'll try to add this feature in next release.


Looks like you have now Smile but nearly all my sessions are of the form where I connect to an ssh server gateway and then use the Shell command "ssh target" to get to where I want. All my Putty sessions have to be set up this way too.

Could you add the ability to make the Putty session from WinSCP do this "double hop" too? Maybe by recognising the ssh command in the config?

I guess you can't win - add a feature and we want more! Thanks for a great piece of software it and you are Cool .
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
I can imagine this solution: If you press button and WinSCP finds PuTTY's stored session with the same name as current WinSCP session, it will not use WinSCP settings, but it will launch the PuTTY's stored session instead. Would it satisfy your needs?
_________________
Martin Prikryl
Guest




prikryl wrote:
Would it satisfy your needs?


Absolutely! All my WinSCP sessions start as Putty ones and are imported so they have the same name.

By the way it would be really nice if an imported session recognised that the putty session did a 'double hop' to another ssh server and could put the Putty 'remote command' into the Shell Enter field. - Like I said - we always want more Wink

Karl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Quote:
Absolutely! All my WinSCP sessions start as Putty ones and are imported so they have the same name.

OK, so next version. But I do not plan any new release in November.

Quote:
By the way it would be really nice if an imported session recognised that the putty session did a 'double hop' to another ssh server and could put the Putty 'remote command' into the Shell Enter field. - Like I said - we always want more

I do not think that this is a good idea. You may have setup command that would prevent WinSCP to work. BTW: How do you authenticate to the host you "hop" to? Just curious.
_________________
Martin Prikryl
Guest




Quote:
I do not think that this is a good idea. You may have setup command that would prevent WinSCP to work
.

Yeah I guess I'm a bit of a special case. Wink

Quote:
BTW: How do you authenticate to the host you "hop" to? Just curious.


It's all done by Public/Private key - I run Pagaent and Agent forwarding is always on.

Here are a couple of examples:
A simple hop to reach serverB via serverA where both servers run sshd and there are firewalls (open to ssh only) between the client and A and between A and B.
In Putty connection host is set to serverA and the "Remote Command" option is set to ssh serverB.
In WinSCP Session Hostname is serverA and Environment->SCP->Shell->Enter is set to "ssh serverB".


A more complex triple-hop can be achieved - add serverC (running sshd) behind yet another firewall.
In Putty connection host is set to serverA and the "Remote Command" option is set to ssh -A -t serverB ssh -A serverC.
In WinSCP Session Hostname is serverA and Environment->SCP->Shell->Enter is set to "ssh -A serverB ssh serverC".

Note the -t (to force a tty) and the extra -A (to forward authentication in case I need to do some scp-ing) options in the Putty settting.

Karl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License