Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kde/ksshaskpass
ssh-add helper that uses KWallet and KPasswordDialog
https://github.com/kde/ksshaskpass
Last synced: 3 days ago
JSON representation
ssh-add helper that uses KWallet and KPasswordDialog
- Host: GitHub
- URL: https://github.com/kde/ksshaskpass
- Owner: KDE
- Created: 2015-09-18T13:21:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-11-11T03:17:02.000Z (3 days ago)
- Last Synced: 2024-11-11T04:23:22.953Z (3 days ago)
- Language: C++
- Homepage: https://invent.kde.org/plasma/ksshaskpass
- Size: 685 KB
- Stars: 52
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: ChangeLog
- License: LICENSES/CC0-1.0.txt
Awesome Lists containing this project
README
Ksshaskpass is a front-end for ssh-add which stores the password of the
sh key in KWallet.
Ksshaskpass is not meant to be executed directly, you need to tell
ssh-add about it. ssh-add will then call it if it is not associated
to a terminal.
From the ssh-add manpage:
/----------------
| DISPLAY and SSH_ASKPASS
| If ssh-add needs a passphrase, it will read the passphrase from the
| current terminal if it was run from a terminal. If ssh-add does not
| have a terminal associated with it but DISPLAY and SSH_ASKPASS are
| set, it will execute the program specified by SSH_ASKPASS and open
| an X11 window to read the passphrase. This is particularly useful
| when calling ssh-add from a .xsession or related script. (Note that
| on some machines it may be necessary to redirect the input from
| /dev/null to make this work.)
\----------------This means you need to make sure to set the SSH_ASKPASS environment variable
to the path of ksshaskpass and then call ssh-add from your autostart scripts.To add it to the KDE autostart sequence you could for example create an
executable script with the following content in ~/.kde/Autostart/ (or maybe
/.kde4/Autostart/, depending on the distribution)./----------------
|#!/bin/sh
|
|SSH_ASKPASS=ksshaskpass ssh-add < /dev/null
\----------------