No longer prompted to enter SSH key pass during KDE startup

After my initial installation and configuration of 13.2 I was being asked by way of dialog box to enter my SSH key pass. I think this was due to an entry in my .bash_profile

# Load SSH agent

SSH_ENV="$HOME/.ssh/environment"


function start_agent {
     echo "Initialising new SSH agent..."
     /usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
     echo succeeded
     chmod 600 "${SSH_ENV}"
     . "${SSH_ENV}" > /dev/null
     /usr/bin/ssh-add;
}


# Source SSH settings, if applicable


if  -f "${SSH_ENV}" ]; then
     . "${SSH_ENV}" > /dev/null
    #ps ${SSH_AGENT_PID} doesn't work under cywgin
     ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {
         start_agent;
     }
else
     start_agent;
fi

During one boot up I selected the remember my password box and went on my way. Now, whenever I boot/re-boot the dialog box does not pop up and I’m forced to run ssh-add to get my key cached.

I’m not using Wallet.

How do I get KDE to pop up the dialog box again so I can cache the key on boot up? I’m guessing I need to force it to forget the password, but I don’t know if that is the case.

/bump for visibility

I saw it the first time. I didn’t respond because I didn’t have an answer.

I still don’t have an answer.

It’s hard to tell what you are doing, because the important part seems to be hidden in “$SSH_ENV”.

I manually load a key after boot is complete. If I use


ssh-add

then I am prompted for a key at the command like. If I want a GUI popup, I use


ssh-add < /dev/null

Apart from that, you might look near the beginning of your “.xsession-error*” files to see if there are any related error messages. Or redirect stdout and stderr for your script to a file, so that you can examine for errors.

On Wed, 24 Dec 2014 21:36:01 +0000, theillien wrote:

> /bump for visibility

There’s no need to do that here - if someone has an answer, they’ll
answer. We don’t do ‘bumps’ to increase visibility here.

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C