kssh-add

Network

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5 .0
Description:

Kssh-add is a group of bash scripts (w/ instalation) to automatically ssh-add your ssh private key at startup using your kdewallet to store and read your password.
Last changelog:

11 years ago

0.1 - initial release
0.2 - fixed "wallet already open" bug a.k.a. "Folder SSH-Agent not found"
0.3 - fixed some minor bugs with empty wallet field and spaces in passphrase (thanks chgentso)

chgentso

11 years ago

On installation, the wallet it defaults to is kdewallet, alright. If I don't enter it, it pops an error (Not enough arguments (expected 1, got 1)).

If the wallet name is entered, it successfully opens it and tries to save the password, but it fails with:
(!) Saving Your Password...
arguments do not match
(!) Closing Wallet...
...and the passphrase is not saved.

Now, the first problems is fixed by adding the lines

if [$wallet = ""]
then
wallet=kdewallet
fi
right after the line
read wallet

The second problem is solved by replacing
$USER $password
with
$USER "$password"
, as the password is actually a passphrase and may contain spaces.

I don't know if this is the right place to post this and if it works for others, but I hope this helped.

mephx, thank you for a very nice script!

Report

C

mephx

11 years ago

all solved, posting 0.3 up now =)

dcop C++ version is comming for proper registering with dcop.

thanks,
x

Report

jonathanverner

12 years ago

Nice scripts but they have one problem: because they are shell scripts, they look as anonymous applications to the kded server. But that then means, that any shellscript will have access to my ssh-password --- something I am not comfortable with. (Of course, I can always allow access on a case by case basis, but since the kded dialog will only tell me that an anonymous application is trying to access the wallet I have no guarantee that it is actually the kssh-add script and not some malicious replacement.)

Report

C

mephx

12 years ago

yes, but not all shell scripts, only the ones run within that script. I have to find a way to do it with a registered dcop application and don't know if that's possible within shell scripts.

cheers,
mephx

Report

nossac

11 years ago

There is a script kwallet-askpass.sh here
http://bugs.kde.org/show_bug.cgi?id=81067

That does a similar thing but has an app name.

Report

tchich

12 years ago

The scripts are included in a tar, not in a tar.gz.

Report

C

mephx

12 years ago

Sorry, forgot the z :)

fixed

Report

11 years ago

0.1 - initial release
0.2 - fixed "wallet already open" bug a.k.a. "Folder SSH-Agent not found"
0.3 - fixed some minor bugs with empty wallet field and spaces in passphrase (thanks chgentso)

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.3
updated Sep 21 2008
added Mar 10 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0
System Tags app software