I fiddled around with retrieving folders from kwallet and such, but that didn't seem to be as easy as attempt to just read the .ssh directory.
Someone else may know a good way to filter ssh keys or what-not (I am not a shell script pro), but this seems to get the idea across.
for i in `ls --hide=*pub ~/.ssh`
do
i=`readlink -f ~/.ssh/${i}`
echo $i
password=$(${dbus_send}readPassword int32:${handle} string:"${APPID}" string:"${i}" string:"${APPID}" | get_string)
if [ "${password}" != "" ]
then
`echo $password > ssh-add $i` # not sure this works, but you get the idea
fi
done
I fiddled around with retrieving folders from kwallet and such, but that didn't seem to be as easy as attempt to just read the .ssh directory.
Someone else may know a good way to filter ssh keys or what-not (I am not a shell script pro), but this seems to get the idea across.
for i in `ls --hide=*pub ~/.ssh` $(${dbus_ send}readPasswo rd int32:${handle} string:"${APPID}" string:"${i}" string:"${APPID}" | get_string)
do
i=`readlink -f ~/.ssh/${i}`
echo $i
password=
if [ "${password}" != "" ]
then
`echo $password > ssh-add $i` # not sure this works, but you get the idea
fi
done