Results 1 to 4 of 4

Thread: No longer prompted to enter SSH key pass during KDE startup

  1. #1
    Join Date
    Jun 2008
    Location
    Kaneohe, HI
    Posts
    129

    Default 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

    Code:
    # 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.

  2. #2
    Join Date
    Jun 2008
    Location
    Kaneohe, HI
    Posts
    129

    Default Re: No longer prompted to enter SSH key pass during KDE startup

    /bump for visibility

  3. #3
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,374
    Blog Entries
    3

    Default Re: No longer prompted to enter SSH key pass during KDE startup

    Quote Originally Posted by theillien View Post
    /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
    Code:
    ssh-add
    then I am prompted for a key at the command like. If I want a GUI popup, I use
    Code:
    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.
    openSUSE Leap 15.1; KDE Plasma 5;

  4. #4
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,044

    Default Re: No longer prompted to enter SSH key pass during KDE startup

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •