Ssh-add does not stay, er, added...

I'm troubleshooting an installation of SSH-Keys. I've successfully installed this with another user. After considerable effort can not discover why the two accounts do not behave the same. One account asks for the passphrase on login, and the other doesn't. Both accounts have the single line ssh-add in ~/.bash_profile.
Where does ssh-add store the added key for each user? Can I inspect this to discover the problem?
[xtian@frylock .ssh]$ ssh-add xtian_frylock-id_rsa
Enter passphrase for xtian_frylock-id_rsa:
Identity added: xtian_frylock-id_rsa (xtian_frylock-id_rsa)
[xtian@frylock .ssh]$ ssh-add -L
ssh-rsa AAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xtian_frylock-id_rsa
Logout and log back in to find,
[xtian@frylock ~]$ ssh-add -L
The agent has no identities.
Last edited by xtian (2013-10-23 23:41:31)

Ok. Here's the output from the working root account:
[root@frylock ~]# printenv | grep -i ssh
SSH_AGENT_PID=701
SSH_AUTH_SOCK=/tmp/ssh-0HKTJiMZQ6ob/agent.700
And here's the output from the non-working user account:
[xtian@frylock ~]$ printenv | grep -i ssh
SSH_AGENT_PID=836
SSH_AUTH_SOCK=/tmp/ssh-q6eu9w7ofDc3/agent.835
Now, I don't launch ssh-agent in .bash_profile. Before I tried to configure gpg-agent and, as near as I can recall, I used the same configuration when I fell back to using ssh-agent. Which is to say I put the eval line in a separate file in /etc/profile.d:
[xtian@frylock ~]$ cat /etc/profile.d/ssh-agent.sh
#!/bin/bash
eval $(ssh-agent)
Where are the ssh-agent environmental variables set? Not in /tmp
Last edited by xtian (2013-10-25 22:19:54)

Similar Messages

  • Modeless window using "palette" does not stay up in CS5

    I am having trouble running a modeless dialog with CS5 (on Windows 64-bit).  My own script does not stay up and neither does the SnpCreateDialog.jsx snippet that  comes with the ESTK and is supposed to demonstrate modeless dialogs.  I have  tried:
    Running from the Scripts panel
    Add #target photoshop
    Being sure the drop-down menu says Photoshop, not CTSK
    as suggested in an older discussion at http://forums.adobe.com/message/3008230#3008230.  (I decided to make a new discussion as that one was marked answered.)
    It also does not stay up when moved into the Photoshop Scripts folder and run from the File menu in Photoshop.
    The relevant code in SnpCreateDialog.jsx is:
    function SnpCreateDialog()
         this.windowRef = null;
    Functional part of this snippet.
    Create a window of type "palette" (a modeless dialog) and display it.
    @return True if the snippet ran as expected, false otherwise.
    @type Boolean
    SnpCreateDialog.prototype.run = function()
         // Create a window of type palette.
         var win = new Window("palette", "SnpCreateDialog",[100,100,380,245]);  // bounds = [left, top, right, bottom]
         this.windowRef = win;
         // Add a frame for the contents.
         win.btnPanel = win.add("panel", [25,15,255,130], "SnpCreateDialog");
         // Add the components, two buttons
         win.btnPanel.okBtn = win.btnPanel.add("button", [15,65,105,85], "OK");
         win.btnPanel.cancelBtn = win.btnPanel.add("button", [120, 65, 210, 85], "Cancel");
         // Register event listeners that define the button behavior
         win.btnPanel.okBtn.onClick = function() {
              $.writeln("OK pressed");
              win.close();
         win.btnPanel.cancelBtn.onClick = function() {
              $.writeln("Cancel pressed");
              win.close();
         // Display the window
         win.show();
         return true;
    "main program": construct an anonymous instance and run it
      as long as we are not unit-testing this snippet.
    if(typeof(SnpCreateDialog_unitTest) == "undefined") {
        new SnpCreateDialog().run();
    If  I put a breakpoint on the "return true;" line, then I can see that the dialog has, in fact, been created and is visible, but it has returned from win.show() and will go away as soon as the script continues.
    Any help would be appreciated.

    Kenneth Evans wrote:
    The advantage of a modeless dialog is that you can continue to do things in Photoshop while the dialog is up.  At least I presume so, since I haven't got one to work, including the ESTK example.
    Sorry but no, most of the Photoshop UI is disabled while a script is running even if the script displays a palette window.
    A dialog window does wait for show() to complete. That is what makes dialogs modal. A palette window does not wait for show() to complete. It runs the rest of the script.
    In the example you posted all the script does after showing the window is return true then ends. Which is why all it does is flash the window. If you put a $.sleep(1000) line before the return true line the windows will display until sleep timeouts then the script will end and the window will close. That is why with Photoshop palette windows are really only useful for progress bars or other script status type windows.
    Although palette windows may allow the user to intreact with the app UI while the window is displayed that doesn't work with Photoshop. The window only displays while the script is running and a running script limits Photoshop UI interaction.
    I have tested palette windows in CS2, CS3, CS4, and CS5 with the same results. The window only shows while the script is running.
    With Photoshop if you want the user to interact with the UI you have to create a panel.

  • LOV does not show newly added data in the same session

    Hi guys,
    I work with JDeveloper 11g Release 2. We use Oracle ADF to develop our web app.
    In a page we have a LOV (say the page name is "a"). The related data for that LOV is inserted to the db in another page ( say the page name is "b").
    When new data is added in the page "b" and goes directly to the page "a" the LOV does not show newly added data. But if the user log out and log in again
    LOV shows newly added data correctly.
    Is there a way to show the newly added data in the same session without logging out? Please help.
    Regards !
    Sameera.

    Add the following method in your ViewRowImpl base class:
    public void refreshLOVAccessorQueries() {
        List lovs = getViewDef().getListBindingDefs();
         if (lovs != null) {
             for (Object obj : lovs) {
                getListBindingRSI((ListBindingDef)obj).getRowSet().executeQuery();
                 ListBindingDef lbd = (ListBindingDef)obj;
    Export that method to the Row Client interface, add him to the pageDef, and invoke in the executables section of the pageDef:
        <executables>
    <invokeAction Binds="refreshLOVAccessorQueries" id="callRefreshLOVs"
    RefreshCondition="#{!requestContext.postback and empty bindings.exceptionList}"/>
       </executables>

  • When I click on a bookmark to open it, the bookmark (in the sidebar) does not stay highlighted. Why?

    When I open a bookmark, the bookmark title from the list in the sidebar does not stay highlighted. It used to but doesn't anymore. Do you know why? Can I change an option to get that feature back?

    Hello Donald.
    Although possibly not related to your problem, I will remind you that the version of Firefox you are using at the moment has been discontinued and is no longer supported. Furthermore, it has known bugs and security problems. I urge you to update to the latest version of Firefox, for maximum stability, performance, security and usability. You can get it for free, as always, at [http://www.getfirefox.com getfirefox.com].
    As for your issue, you may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
    If you want support for one of your add-ons, you'll need to contact its author.

  • Iphone voice memos does not stay open

    iphone voice memos does not stay open

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.

  • Iphone 4 does not stay connected to my network

    Since upgrading to 6.1, my iPhone 4 does not stay connected to my network.  I have to input my password each time I leave my house.  My other devices stay connected, so the issue is with the upgrade.  Has anyone found a way to keep their IPhone connected to their network?  Thanks.

    I don't have another phone to try. I took out the sim to check for deffects but it looked fine. Cleaned the sim card with alcohol and cleaned the aim compartment. Phone didn't loose Internet connection all day yesterday, but this morning went to check emails and wouldn't update until I turned airplane mode on then off again.

  • Iphone does not stay connected to wi-fi.

    When using apps or when in sleep mode my iphone does not stay connected to my wi-fi. All other items within the house have no issues with staying connected to my wi-fi.

    By design, when entering sleep mode, the iPhone will disconnect from WiFi to conserve battery. If you want the WiFi connection to remain persistent, plug your phone into a power source.

  • HT2305 MY IPHONE BATTERY CHARGE DOES NOT STAY

    the charge of my iphone does not stay for over 12hrs, what should I do?

    hey EmsOne,
    try updating the Power Manager to version 3.64 >> http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS014924
    and the Power Management Driver to version 1.64 : http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS014939
    Hopefully this will work for you.
    WW Social Media
    Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    Follow @LenovoForums on Twitter!
    Have you checked out the Community Knowledgebase yet?!
    How to send a private message? --> Check out this article.

  • Cannot save password-screen does not stay open long enough

    Cannot log into company intranet or home voice mail. Asks for a password and cannot save it as the save password dialogue box does not stay open long enough to click on it. Works fine on other locations

    Re: "Lightroom encountered and error when reading from its preview cache and needs to quit"

  • My note app does not stay open

    My note app does not stay open
    <Email Edited by Host>

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.

  • When I open my MacBook Air the keyboard comes up along with the screen and does not stay still?!

    When I open my MacBook Air the keyboard comes up along with the screen and does not stay still. So I need to hold down the keyboard while i open it. Other than that it works fine despite the fact that the fan noise some times is loud and sometimes it's getting warm at the base. I wonder if this can be fixed if i go to one of the apple branches.

    Yes. Take the computer to the Apple store to have it fixed.
    Best

  • IPod 30GB (MA446LL/A) Does Not Stay On and Clicks

    After connecting the iPod to my laptop, the Apple icon appears but it does not stay on (blinks on and off) and I hear a click. The unit has been sitting in my drawer for almost one year and has not been charged or used within that time.
    1. Does this affect the unit?
    2. Do I need to have iTunes loaded on my laptop for this unit to actually stay on?
    3. Can this be fixed? If so, how?
    Any help would be appreciated

    I had a 15GB model with similar problems and reached a solution.
    • First of all, charge the darn thing! If you don't have the necessary power adapter, your laptop should do. Normally, when the power is low, you'll get an icon on the screen to tell you as much. When it's really, really low, then it can't even load that much up, as seems to be your case. Charging it should be a big help. Just don't expect the time and date to be correct at that point.
    • You don't have to have iTunes loaded on your machine to charge it. However, if and when it comes down to it, you will have to have it to restore the iPod and then sync you library to it again.
    If this doesn't work, there are a few more extreme options to try. Let me know if that's the case, and I'll detail them for you.

  • I am really having a horrible time when trying to do our Church announcements in FCP X. When I try to take a clip from the event to the timeline my clips expanded and my timeline zoom level does not stay in the original place. Help

    I am really having a horrible time when trying to do our Church announcements in FCP X. When I try to take a clip from the event to the timeline my clips expanded and my timeline zoom level does not stay in the original place it moves to the right and is max out which makes every clip that I bring to the timeline expanded.

    What format etc. are the video clips and what were they shot on?
    Before you do anything else, trash the preferences with this free app:-
    http://www.digitalrebellion.com/prefman/

  • Toolbar items I add do not stay on bar after restarting Firefox 4.

    Toolbar items I add do not stay on bar after opening firefox 4 again. I need to add them each time I start firefox, even basic ones like Print. Some stay put eg home but mostly they are wiped out on the main bar that contains the Awesome bar and search bar.
    Am I missing a plugin or something?

    This is caused by a corrupt file, for details on how to fix it see https://support.mozilla.com/kb/Toolbar+keeps+resetting

  • TS3048 i have replaced the batteries and checked to make sure they are installed properly but the keyboard does not stay turned on

    i have replaced the batteries and checked to make sure they are installed properly but the keyboard does not stay turned on

    Hold the power key on the keyboard down for 5 secs to power off,  tap the power button once to start.   It should connect automatically.

Maybe you are looking for