SSH Key login not working when added to gpg-agent

Hello,
As I use gnupg, I run the gpg-agent. I run it with systemd --user and it works flawlessly. As I already run gpg-agent, I figured I might as well just add my ssh keys to it as well. Therefore I start gpg-agent with --enable-ssh-support. I use my SSH keys a lot and never had any problems with connecting to anything with a simple ssh .... or pushing things to git etc.
As the SOCKS_AUTH_SSH envvar needs to be set for ssh-add to work, I added this line to my .bashrc
export SSH_AUTH_SOCK=~/.gnupg/S.gpg-agent.ssh
Now, adding my SSH Keys with a simple ssh-add seems to work fine (no errors etc).
However, when I try to connect to a server now, the following happens:
ssh -vT [email protected]
OpenSSH_6.8p1, OpenSSL 1.0.2a 19 Mar 2015
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to XXXXXXXXX port XXXXX.
debug1: Connection established.
debug1: identity file /home/XXXXX/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/XXXXX/.ssh/id_rsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.8
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.8
debug1: match: OpenSSH_6.8 pat OpenSSH* compat 0x04000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr [email protected] none
debug1: kex: client->server aes128-ctr [email protected] none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:Mw5MTDp91yExgStdoMPMwi2yZdoG9MruOm+6XiC5Vks
debug1: Host '[XXXXXXX]:XXX' is known and matches the ECDSA host key.
debug1: Found key in /home/XXXX/.ssh/known_hosts:1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/XXXXX/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: No more authentication methods to try.
Permission denied (publickey).
Which is very strange as id_rsa is my (ecrypted) private key. I am also prompted to enter the corresponding password when issuing ssh-add.
What could the problem be in this case? Thanks a lot!!
Last edited by replax (2015-05-18 19:06:58)

replax wrote:Well, there is something listed in .gnupg/sshcontrol , I am not sure if it is connected to my own key though. I tried ssh-add -l and it will list my one key, although it is different from the one in sshcontrol. I suspect that that is an issue of presentation though, as ssh-add spews out the SHA256 of my key..
How could I go about verifying that they key is indeed correct? Shouldn't it be added automatically by ssh-add?
Thanks a lot!!
Yes it should be added automatically. I suppose you could try it in a new user just to start fresh and see if it works, at least then you'll have either verified that your steps were correct or incorrect.

Similar Messages

  • Parent key 1393696 not found when adding child 1393727.

    By posting, I received this :
    An error in the system has occurred. Please contact the system administrator if the problem persists.
    type: java.lang.IllegalArgumentException
    java.lang.IllegalArgumentException: Parent key 1393696 not found when adding child 1393726.
    at com.jivesoftware.util.LongTree.addChild(LongTree.java:99)
    at com.jivesoftware.forum.database.DbTreeWalker.addChild(DbTreeWalker.java:233)
    at com.jivesoftware.forum.database.DbForumThread.addMessage(DbForumThread.java:617)
    at com.jivesoftware.forum.proxy.ForumThreadProxy.addMessage(ForumThreadProxy.java:145)
    at com.jivesoftware.forum.action.PostAction.createMessage(PostAction.java:1083)
    at com.jivesoftware.forum.action.PostAction.execute(PostAction.java:946)
    at com.jivesoftware.forum.action.PostAction.doPost(PostAction.java:666)
    at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:300)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:166)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.jivesoftware.forum.action.JiveExceptionInterceptor.intercept(JiveExceptionInterceptor.java:63)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.jivesoftware.base.action.JiveObjectLoaderInterceptor.intercept(JiveObjectLoaderInterceptor.java:56)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at oracle.wocapps.forum.action.OracleLocaleInterceptor.intercept(OracleLocaleInterceptor.java:74)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:71)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:116)
    at com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:272)
    at com.jivesoftware.base.util.JiveWebWorkServlet.service(JiveWebWorkServlet.java:62)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at com.jivesoftware.util.SetResponseCharacterEncodingFilter.doFilter(SetResponseCharacterEncodingFilter.java:53)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
    at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
    at com.jivesoftware.util.SetRequestCharacterEncodingFilter.doFilter(SetRequestCharacterEncodingFilter.java:48)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)

    Check the adapter that is attached to the child table , compile it again and try adding .
    BTW which connector you are using and paste the error trace from log files
    Thanks
    Suren

  • Fn key can not work when logged in as a specific user

    I use fn + (F1-F12) to control my MBP(adjust brightness etc). This setting works well for more than a year.
    Recently, when I logged into my user account, I found I can not use fn+(F1-F12) to adjust setting anymore. When I press fn + f1, the result is equivalent to just press f1 without holding the fn key.
    The fn key can work well when I am in the login screen, but after I type my password and press enter, the fn key will not function anymore. Even logout can not help.
    If I log into another user (guest or newly created user), the fn key can work well. If I log into my account first, then another user, the fn key will be disabled until I reboot my machine.
    It seems that my user account launched some weird applications that disabled my fn key.
    I tried to disable as many login items as I can, but the problem still remains.

    Thank you for your answer.
    Unfortunately I can't try your solution on the computer where the problem occurred because it is used in another course for the moment and is therefore not available. But I tried to recreate the problem on another computer. I created a restricted account and when logged in on that account I opened my VI and it worked fine... (all subVI:s were found). By default, the restricted account had Read & Execute, List Folder Contents and Read permissions for the MAX folder. So, I then unchecked the Allow-boxes in an attempt to recreate the problem, but the VI still worked on the restricted account. Then I checked the Deny-boxes for the permissions mentioned above, but the VI still worked. Since I couldn't recreate the problem I don't know if your solution is the right one, but at least I can draw the conclusion that it is possible to run my VI from a restricted account.
    But I will try your solution on the computer where the problem occurred when it is available and I will let you know whether the problem was solved or not.

  • My video sound does not work when added to a pdf

    I just bought adobe acrobat pro and when I insert a video it plays but with no sound. I have tried several different videos (quicktime) and they all do the same thing. I am working on a mac

    Think I got it to work:
    Just added the SetSystemStream in the button scripts that jumps to the chapter menu. Now I can go directly to a chapter point and have the subtitles on or off, depending on the GPRM value (that is set in the Language select menu).
    Not sure if this is the best way, though. Scripting can be done in many ways - I tend to use separate scripts rather than having a few and more compex scripts. Works for me - most of the time.
    G4 Dual, FCP5, DVDSP4, BitVice, Soundtrack Pro   Mac OS X (10.4.3)   2 GB RAM, SuperDrive
    G4 Dual, FCP5, DVDSP4, BitVice, Soundtrack Pro   Mac OS X (10.4.3)   2 GB RAM, SuperDrive

  • Satellite C850D - keys are not working when trying to log into laptop

    First I would like to say sorry for my lack of computer knowledge. My C850D is only 2 months old, last night it was working perfectly... this morning when I turn it on to type in my password not all the keys would work.
    I got a little angry and just reset the laptop. Still not working and even after that.... any advise to why my keypads no longer works.

    >My C850D is only 2 months old,
    I guess you have an hardware problem.
    Looks like keyboard malfunction.
    The warranty should be valid if the notebook is only 2 month old
    Therefore get in contact with Toshiba authorized service available in your country to get this issue fixed under warranty conditions usually the unit should be fixed free of charge.

  • Print Document option, not work when adding documents.

    Dear friends.
    I have checked inside SAP BO the checkbox Print Document when AR Invoice is added (Print preferences)   But this action not work because the document not is printed automatically, then the user has to print it manually.
    Thanks for your comments,
    Daniel

    Thanks Rahul,
    That was the way: Option Defaults in the User Definition.
    Best Regards,
    Daniel

  • Toggle key tones not working when Creative enhancement software is active?

    Sound Blaster X-Fi Xtreme Audio
    Winows 7 Prof 64bit
    All latest drivers
    Hello all
    I make use of the Windows 7 toggle key tones. For those who don't know that: when enabled, your hear a tone when you strike the Caps Lock, Num Lock and Scroll Lock keyboard keys. Especially the Caps Lock tone is very handy cause you know right away that you pressed it by accident
    But when the Creative Sound Blaster enhancements are set to Active in the Properties of Speakers part of Windows 7, those key tones do now work any more? When I switch the Sound Blaster enhancements Off, then the key tones do work just fine.
    All other sounds are just great, no trouble at all with that. It's only those key tones that don't work any more whit the enhancements set to On.
    Is there a solution for this?
    Edit: forgot to mention. I have normal stereo 2.0 speakers, Creative Gigaworks T20 II.
    Thanx in advance,
    Menno
    The Netherlands

    thanks
    that site seems good but whenever i click on a link to downlad i get
    Access Denied
    You don't have permission to access "http://trials2.adobe.com/AdobeProducts/PHSP/12/osx10/Photoshop_12_LS1. dmg?" on this server.
    Reference #18.8fe9df5a.1393438653.7725c4
    any ideas?

  • Fingerprint login not working when resumning from sleep

    Hello,
    I changed HDD to SSD and did *fresh* install, not from rescue discs.
    Everything is working as expected except except fingerprint login -- instead of logging I got an error:
    The computer is locked. Only logged user can unlock it.
    Picture
    I got this error only when resumimng from sleep/hibernate, I can normaly use FPR when logging right after reboot or if I launch FPR software.
    Software were installed via Lenovo System Update, nothing manually, using Lenovo Fingerprint Software v.3.3.2.27
    Fingerprints are present from previous enrollment/installation.
    Any help appreciated,
    Boštjan
    Edit: forgot system info -- T500 2056-VL1 with Samsung 830 256Gb, Win 7 x64 Pro SP1

    Hey there Boštjan,
    Looking over some of the fingerprint reader solutions on the lenovo support site, I saw that they Fingerpring Software for your machine, the T500 Win 7 64 Bit is at version 3.3.2.50. It may be worthwhile trying this update to see if it resolves your issue. Here is the document ID, DS012806, you can put it in the search field and it should pull it up for you. Alternatively here is the web address.
    http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS012806
    Good Luck!

  • ESC key does not work when Photoshop CS4 is opened

    Hi everyone!
    It seems that everytime my Photoshop CS4 is opened, my ESC key ceases to function. When I close the PS, it starts to function again. Running Windows 7 64-bit. I've tried cleaning my registry and reloading PS. Not that critical, but it got me to notice that I use my ESC key more often than I thought
    Any thought?
    Thanks!
    JP LeBlanc
    Montreal SEO
    [email protected]

    http://forums.adobe.com/thread/372523
    Mylenium

  • IView not working when added to workset

    Hi all,
          I have come across a very strange scenario.
    I have deployed a PAR file created in NWDS & created an iView out of it. When I preview the iView, it works fine. But when I add the iView to the workset and assign a role to the workset & try viewing the iview, it doesn't work!! There's no error msg displayed. The log file lists a <b>NameNotFoundException</b>.The iView contains inputfields & buttons. there's a <b>Fileupload</b> UI element in the iView. That alone works. None of d other button click events work. What could be the reason? Can someone help me?
    Any help in this regard will be rewarded.
    Regards,
    M.Subathra

    Hi Subathra,
    When you are able to see the iView from preview and not from the iView link, then there is sure to be a error in the creation process. Do the following:
    1. Run the application from the Content Administration->Web Dynpro->Deployed contents.
    2. From the browser address, copy the workspace and application name.
    3. Edit the iView properties and replace the workspace and application name, with the copied ones.
    Ensure there is no blank space prefix/suffix to workspace or application name.
    Regards,
    Srinivasan T

  • Tinymce declarative component not working when added with PPR

    I have a declarative component that i exposed in a resource catalog.
    This component uses <af:resource> to inject javascript in the page.
    the problem that i have is when in editing mode, and you add the component. the components <af:resource> is not yet injected and i have to manually refresh my browser to see the effect.
    I am trying to integrate TinyMCE as a component.
    This problem occurs because when you click the add button it does a PPR.
    If i load a page where my component was already on, I don't have this problem.
    I also tried a refresh commandButton, but because forcePPR is configured in the web.xml and I may not change this, it is not executed correctly.
    Any ideas to solve this, or a workaround would be helpful?
    thanks in advance
    <af:group id="dc_g1">
          <af:commandButton text="refresh"
                            actionListener="#{backingBeanScope.tinymceBean.addScripts}"/>
          <af:resource type="javascript" source="/tiny_mce/tiny_mce.js" />
          <af:resource type="javascript" source="/tiny_mce/config.js" />
          <af:inputText simple="true" value="#{attrs.value}" styleClass="AFStretchWidth"
                        id="dc_it1" rows="2" />
          <af:resource type="javascript" text="initTiny();" />
        </af:group>

    Try collecting a Process Monitor trace https://technet.microsoft.com/en-us/sysinternals/bb896645 to check what is the Access is being Denied on.
    Windows Store Developer Solutions, follow us on Twitter:
    @WSDevSol|| Want more solutions? See our blog

  • Tab order not working when adding rows through Javascript

    I am having trouble with my tab order in LiveCycle Designer 8. When I "add instance" for a row from a button, my tab ordering skips the new row. How can I get the new rows to fall line up correctly in the tab order?
    Here is my Javascript code:
    "click" - Table.Product1.Product12.Product13.instanceManager.addInstance(1);

    do you have the tab order set as automatic or custom?

  • CURVE 8520 - KEYS ARE NOT WORKING

    Need assistance to guide as the qwerty pad, navigation and other keys are not working. when conncting the phone to laptop, the alarm confirmation appears and cannot cancel or open other file.
    already restart the phone and removed the memory card but still problem occurs.
    Solved!
    Go to Solution.

    Perfom a back up from your device information , the make an update if your device dont have any update make a force detection or just a reset of factory settings if the error continues you need a warranty replacement.
    Back up steps:
    For a backup of the data on a BlackBerry smartphone, complete the following steps:  
        Click on Device from the upper left-hand corner of the BlackBerry Desktop Software and select Back up from the drop-down list, or simply click Back Up Now from the main screen of the BlackBerry Desktop Software.
        Mark the appropriate customization level ( Full, Quick, Custom).
        If your smartphone includes built-in media storage and you want to back up data that is stored there, select the  Files saved on my built-in media storage check box.
        Input a file name if desired, or leave the default text.
        Leave the  Encrypt backup file unchecked.
        Select Back up.
    Update steps:
        Connect the smartphone to the computer.
        On the home screen of the BlackBerry Desktop Software, click Update.
            To download an update, click Get update.
            To view other available versions of the BlackBerry Device Software, click View other versions. If applicable, click another version. Click Install.
        Do any of the following:
            To keep a backup file of your smartphone data and settings, select the Back up your device data checkbox. This backup file is restored to the smartphone after the update is complete. If the data is not backed up, the smartphone data, settings, and email messages are deleted from the smartphone after the update is installed.
            To encrypt the backup data, click Encrypt backup file.
            Select the Keep me subscribed to email notifications checkbox to receive email updates when new versions of the BlackBerry Device Software become available.
        Click Install update.
    When the confirmation message that the update is complete is displayed, the BlackBerry smartphone may be disconnected.
    Force Detection :
    Remove the battery from the back of the BlackBerry smartphone.
    Connect the BlackBerry smartphone to the computer using a USB cable.
    Once prompted to Retry, Update or Cancel, click Update. If available updates are found Desktop Manager will prompt you to Get Update, Update Later or View other versions
    Click Get Update to install the recommended software version or View other Versions to manually select the version you wish to install and click Install.
    In the Update Options screen there is the option to enter the email address to be notified in future when there may be new software versions available.
        fill in the checkbox and enter the email address in the text field to receive email notifications
        uncheck the checkbox and leave the text field blank to not receive updates.
    Reinsert the Battery which was removed in step 1
    Click Install Update
    Reset Factory Settings steps:
        In the top right corner of the BlackBerry Desktop Software, click on the ? in the top right hand corner of the BlackBerry Desktop Software.
        Click Support Resources
        Then Support Tools
        Click the Reset button under the heading Reset to Factory Settings.
    Any question let me know.!

  • Enter key does not work with MSTSC

    I have SQL Develoepr 1.0.0.15.57 installed on a Windows Server 2003 (Ver. 5.2 SP 1). I use Microsoft Terminal Services Client (mstsc.exe) to get to that server from a Windows XP Professional (ver. 5.1 SP 1) box.
    When I use mstsc to get to the server and launch SQL Develoeper, it works...mostly. But the <enter> key does nothing. I've tried changing the line terminator (tools/preferences/line terminator) from "Platfor Dependant" to "Windows CR/LF" but that has no effect.
    The encoding is set to cp1252 which is the same as my local version on the XP Pro box (both 1.0.0.15 and the new beta 1.1.0.21) which work fine.
    Any ideas why the enter key would not work when using mstsc from an XP box to a Windows Server 2003 box?
    Thanks,
    Shelby

    Look in Tools| Preferences | Accelerators and see if you have a key defined for 'insert new line'.
    If you haven't, try restoring the default accelerators

  • My login password is not working when i try to log in to my macbook air. what should I do?

    my login password is not working when i try to log in to my macbook air. what should I do?
    Thanks, Debora

    You can reset the password.
    How you do it though depends on the version of OS X you are running.
    On Lion or Mountain Lion, you use the following technique to reset the Administrators password:
    Boot to your Recovery Partition, by holding down the Option key while starting, and then selecting the Recovery HD as the boot choice.
    Once booted, at the top of the screen is a menu ..., select Utilities / Terminal from the menu bar.
    In the Terminal window, type “resetpassword” (without the quotes) and press return. A “Reset Password” window will open. Select your boot volume (your SSD drive) if it is not already selected. Select your administrators username from the menu labeled “Select the user account” if it is not already selected. Follow the prompts to reset the password. Restart the computer from the apple menu.
    If you are using the Keychain, you will lose your existing one, and have to start a new one, unless  you remember the old password.

Maybe you are looking for

  • X-FI Wireless stopping programs! HE

    I have been using my X-FI sound blaster express card for notebooks for months now. I haven't had any major problems until now... out of no where the connect green light was lite up. I dunno if I pressed the button and that made it light up or if its

  • DVD Crahses Help Please Urgent

    Hi, I have a 1 hour 45 min video with several chapter points, when I skip through the chapter points on my mac it works fine. I burnt my project on a Dual DVD and played it in my DVD Player, it crashes at one particular chapter point. I tried 3 more

  • Downgrade rights

    i asked if i should get xp or vista. i think everyone recomends xp. someone told me about downgrade rights and heres a website about it http://download.microsoft.com/download/5/f/4/5f4c83d3-833e-4f11-8cbd-699b0c16418 2/royaltyoemreferencesheet.pdf im

  • I want store JMS queue in oracle database..

    Hi all, I want store JMS queue in oracle database.. How can i configure my jboss 3.0.1 Thanks, Thilsen

  • ESS - add a new column to Record Working Time table

    Hello all, My client would like to add a column to the Record Working Time table in ESS. They would like to add a column for Activity Name next to Activity Number. Can anyone tell me where this can be congured? Or would this be something I would need