Bug 97419 - RFE: konsole kwallet integration for ssh
Summary: RFE: konsole kwallet integration for ssh
Status: RESOLVED INTENTIONAL
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.4.2
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-19 12:25 UTC by David Anderson
Modified: 2005-01-19 16:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Anderson 2005-01-19 12:25:53 UTC
Version:           1.4.2 (using KDE 3.3.2-1.3.2.kde, Fedora Core release 2 (Tettnang))
Compiler:          gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)
OS:                Linux (i686) release 2.6.7-1.494.2.2

This idea is a _bit_ hackish, but would be useful, and non-intrusive.

I'm a sysadmin; my Konsole "sessions" menu has a list of about 20 machines that I regularly SSH into. That's a lot of passwords to remember.

It would be great if Konsole could have kwallet integration, and remember my passwords for me.

But wait, I hear you say: "Konsole's a terminal emulator. It's not an SSH program - /usr/bin/ssh is doing that. WONTFIX." But hold on! Konsole could easily do this, as follows:

1) Is the session command line beginning with "/some/path/to/ssh" ? (or telnet, or rsh)
2) If so, grok the command line to see what host and user is being ssh-ed to - e.g. "ssh bobbins@192.168.0.1".
3) If the first line that is printed to the console ends with "password:" (or whatever the international equivalent is), then pop up a GUI dialogue box, using a wallet entry for ssh://bobbins@192.168.0.1 - and input the password on the terminal, and storing it in the wallet for future use. If there's already one in the wallet, just input that on the terminal.

If the session command line _doesn't_ begin with /some/path/to/ssh, then just don't do anything. Nothing changes - nothing breaks.
Comment 1 Waldo Bastian 2005-01-19 16:24:43 UTC
Too hackish, not going to happen.

I suggest you install ssh keys on the servers you login to and use ssh-agent, then you can enter the password once with ssh-add.

Other option is to wrap ssh into something that sets SSH_ASKPASS and that pops up a GUI password dialog or queries kwallet, let's call it kssh. No need to touch konsole for that.

Note that there is http://kssh.sourceforge.net/ although it's not entirely clear to me what it does.