Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open in terminal (SSH) :: make available to Windows port #5593

Closed
cyberduck opened this issue Dec 26, 2010 · 6 comments
Closed

Open in terminal (SSH) :: make available to Windows port #5593

cyberduck opened this issue Dec 26, 2010 · 6 comments
Assignees
Labels
enhancement fixed sftp SFTP Protocol Implementation
Milestone

Comments

@cyberduck
Copy link
Collaborator

c47aafb created the issue

It's clearly documented here:
http://trac.cyberduck.ch/wiki/help/en/howto/sftp#OpeninTerminal

But it's not yet available in Windows. Launching Putty would be very nice. Suggested shortcut:CRTL-P

@cyberduck
Copy link
Collaborator Author

@dkocher commented

That should be straight forwarded. Starting a session from the command line.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

The terminal.command.ssh property in user defaults should be set to

putty.exe -ssh {0} {1}@{2} -t -P {3} -m "cd {4} && exec \$SHELL"

which is then formatted at runtime with

        String ssh = MessageFormat.format(Preferences.instance().getProperty("terminal.command.ssh"),
                identity ? "-i " + host.getCredentials().getIdentity().getAbsolute() : "",
                host.getCredentials().getUsername(),
                host.getHostname(),
                String.valueOf(host.getPort()), workdir);

The -m must point to a file according to the PuTTY documentation.

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

In 386ac5c.

By default Cyberduck looks for putty.exe in the user's home folder. To change the default search path you need to change the hidden configuration option terminal.command.ssh which specifies the location (including putty.exe) of putty.

@cyberduck
Copy link
Collaborator Author

@ylangisc commented

There is currently no shortcut yet. Ctrl-P is usually used for printing the current file.

@cyberduck
Copy link
Collaborator Author

c47aafb commented

Replying to [comment:5 yla]:

There is currently no shortcut yet. Ctrl-P is usually used for printing the current file.

Ctrl-P doesn't seem to be in use at the moment

What do you think of Ctrl-S for "Shell" ?

It seems available as well.

M ;-)

@cyberduck
Copy link
Collaborator Author

c47aafb commented

Replying to [comment:4 yla]:

In 386ac5c.

By default Cyberduck looks for putty.exe in the user's home folder. To change the default search path you need to change the hidden configuration option terminal.command.ssh which specifies the location (including putty.exe) of putty.

Cyberduck will start Putty indeed and put you in the right directory (great!)

Public/Private key authentication works beautifully. But when using password authentication, it doesn't pass the password.

Also, would you consider bundling putty.exe so users don't have to fiddle with this? (Like on Mac). Putty is licensed MIT.

"In particular, note that the MIT licence is compatible with the GNU GPL. So if you want to incorporate PuTTY or pieces of PuTTY into a GPL program, there's no problem with that."
http://www.chiark.greenend.org.uk/~sgtatham/putty/licence.html

Thanks!

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement fixed sftp SFTP Protocol Implementation
Projects
None yet
Development

No branches or pull requests

2 participants