Results 1 to 3 of 3

Thread: Adding multiple ssh keys to kwallet

  1. #1
    Join Date
    Oct 2006
    Beans
    4,619
    Distro
    Kubuntu 13.10 Saucy Salamander

    Adding multiple ssh keys to kwallet

    I have two ssh keys that I would like to have automatically unlocked when I log in. I have this script in ~/.kde/Autostart
    Code:
    #!/bin/sh
    export SSH_ASKPASS=/usr/bin/ksshaskpass
    ssh-add </dev/null
    This works perfectly for my first key (id_rsa) but I cannot get it to unlock a second key (id_rsa.2) I even manually added an entry in kwallet under ksshaskpass but it still doesn't unlock it. What am I missing?
    Blog | Ubuntu User #15350 | Zsh FTW | Ubuntu Security | Nothing to hide?
    AMD Phenom II X6 1075T @ 3GHz, Nvidia GTX 650, 8GB DDR3 RAM, 2 X 1TB HDD
    Please don't request support via PM


  2. #2
    Join Date
    Oct 2006
    Beans
    4,619
    Distro
    Kubuntu 13.10 Saucy Salamander

    Re: Adding multiple ssh keys to kwallet

    Bump
    Blog | Ubuntu User #15350 | Zsh FTW | Ubuntu Security | Nothing to hide?
    AMD Phenom II X6 1075T @ 3GHz, Nvidia GTX 650, 8GB DDR3 RAM, 2 X 1TB HDD
    Please don't request support via PM


  3. #3
    Join Date
    Oct 2006
    Beans
    4,619
    Distro
    Kubuntu 13.10 Saucy Salamander

    Re: Adding multiple ssh keys to kwallet

    Solved. I just simply added the path to both keys to the autostart script.

    Code:
    ssh-add /home/$USER/.ssh/id_rsa /home/$USER/.ssh/id_rsa.2</dev/null
    Blog | Ubuntu User #15350 | Zsh FTW | Ubuntu Security | Nothing to hide?
    AMD Phenom II X6 1075T @ 3GHz, Nvidia GTX 650, 8GB DDR3 RAM, 2 X 1TB HDD
    Please don't request support via PM


Tags for this Thread

Bookmarks

Posting Permissions

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