Updating the system has broken ssh-agent

Hi everyone, I recently encountered a strange problem with ssh-agent. For a very long I started it with a simple
ssh-agent
and everything was fine - I could add a key from a different console and everything was immediately visible in all the applications that needed SSH key authentication. However, after the last updates I noticed that simple ssh-agent no longer works - the environment variables are not exported to the system. I know I can use eval `ssh-agent`, but:
- Once I close the console, I cannot use the ssh-agent process anymore.
- The agent is not visible from a different console.
- The agent is not visible from NetBeans or something similar.
I noticed the problem for the first time in December, after switching to Arch x86_64, but I managed to get the old call working somehow. Unfortunately, I have no idea, how I did that . Now I've updated Arch x86 both on laptop and on a desktop and the problem appeared again on both of them. I found several resources about ssh-agent via Google, but nothing concerns my problem directly. Has anyone encountered a similar problem, too and knows, what is wrong with the new Arch SSH packages or how to fix it? I would appreciate any help, because SSH is critical for me and now it doesn't work correctly on any of my computers.

I'm not sure how to directly answer your question, but here's the portion of my .bashrc I use to start the ssh agent on login. Hope it helps! I'm also running x86_64.
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 -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {
start_agent;
else
start_agent;
fi
Good luck!
Scott

Similar Messages

  • During the software update the system has stop since 14 hours ???

    I recently bought a Mac Pro with 16GB and 512Gb Flash Memory ,as i retutn home and try to up date the software the system has stop since 14 hours.
    I'm new to the Mac word and i would like to Know if it is normal that any Software update takes so Long time.
    Thanks's
    Angelo

    It's something wrong, you'd better stop software update and restart update again.

  • My apple tv has always had issues on connecting to wifi. but now that iv'e updated the system, it wont connect to wifi at all. Id like to know what to do, and if its eligible to get a new one. the serial number is: DY5HNVP5DRHN

    My apple tv has always had issues on connecting to wifi. but now that iv'e updated the system, it wont connect to wifi at all.
    My connection is fine because Im using it on my macbook pro perfectly, so the problem is definetly on apple tv.
    Id like to know what to do, and if its eligible to get a new one. the serial number is: DY5HNVP5DRHN

    From what I understand from this post, yes you do qualify for a replacement.
    http://www.macrumors.com/2013/04/15/apple-initiates-replacement-program-for-3rd- generation-apple-tvs-with-wifi-connectivity-issues/

  • Installing HP Printer software update 3.0 has broken the scanner on my HP PSC 1355 printer.

    Installing HP Printer software update 3.0 has broken the scanner on my HP PSC 1355 printer.
    After the update, the printer prints correctly, but scanning from the Print and Scan, Preview or Image Capture fails with "Waiting for scanner" followed be "Failed to open a session on the device." Followed by the device disappears form ImageCapture.
    I've tried restarting to the computer and printer and plugging it into another USB port - the results are the same. Printer utility hangs too.
    Solutions?

    did you try this:
    Place the item that you want to scan on the scanner glass, or load it into the Automatic Document Feeder (ADF) if your printer has one.
    In the Applications folder or from the Dock, click Preview.
    From the Preview File menu, select Import from Scanner.
    Select your printer from the list. The details of the scan display.
    If a 'Software for this device is not installed' message displays after you select your printer, click Install, and then follow the instructions to complete the installation.
    Click Show Details to view scan settings and options.
    NOTE: Make sure that you select either the Flatbed mode or theDocument Feeder mode, depending on your printer and how you plan to scan. 
    Change any settings as necessary, and then click Scan.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03967522&cc=us&dlc=en&lc=en &os=4159&product=306898&sw_lang=#N1056

  • I cant update itunes as the system has not been modified

    i am unable to upgrade to itunes11. there is an unspesified error as the system has not been modifed. how do i fix this?

    Quote from: Svet on 19-March-11, 22:18:54
    i found this message The system has not been modified  when i rty to install driver from my msi gtx 460 1g hwak

  • My IPhone is set up with an internet  downloaded firmware of ios7 because my phone would not restore, the system has failed and I had to do a manual erase fro  within the phone. My computer will not accept the phone because they say it's a "Developer?"

    My IPhone is set up with an internet  downloaded firmware of ios7 because my phone would not restore, the system has failed and I had to do a manual erase fro  within the phone. My computer will not accept the phone because they say it's a "Developer?" Help. I cannot not even get passed the activation step on the computer or phone because it will not activate the device.

    Hello buddyacw
    You would have to restore the iPhone. Download the latest version of iTunes and then follow the steps in the article below to get it working again.
    iOS: Unable to update or restore
    http://support.apple.com/kb/HT1808
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • I've the iphone 4s, and My battery show me 40% than the phone shut down,some of my friends the same, from when i'll update the system os.

    I've the iphone 4s, and My battery show me 40% than the phone shut down,some of my friends the same, from when i'll update the system os.
    We've think that Apple do it for making the change of the phone!!  :O
    what will we have to do for making the downgrade of OS of the phone?
    tks Andrea

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.
    Apple has never supported downgrading of the iOS.

  • The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or

    I have taken the cfdump for tmpqry and it shows all data for
    the range ( No error at this step ) . But when we exceute this
    dbquery we get below mentioned error .
    <cfquery name="qry" dbtype="query" >
    SELECT *
    FROM tmpqry
    ORDER BY #arguments.colSort# ASC
    </cfquery>
    senerio:
    I am using createobject to create a reference for component
    and call MDArraySort function in the cfc and getting this error .
    'The system has attempted to use an undefined value, which
    usually indicates a programming error, either in your code or some
    system code.
    Null pointer is undefined.... '
    i am using this code in a cfc file.
    <cffunction name="MDArraySort" Returntype="query"
    access="public" >
    <cfargument name="colArray" type="array"
    required="true">
    <cfargument name="colNames" type="string"
    required="true">
    <cfargument name="colSort" type="string"
    required="true">
    <cfargument name="sensorIDs" type="string"
    required="true">
    <cfscript>
    var tmpqry = Querynew(arguments.colNames);
    var qRow = QueryAddRow(tmpqry, Arraylen(arguments.colArray)
    </cfscript>
    <cfloop from="1" to="#Arraylen(arguments.colArray)#"
    index="qRowIndex">
    <cfscript>
    sIndexinSensorIDs = colArray[qRowIndex]["SENSOR"]&"##";
    Temp_readin_code =
    colArray[qRowIndex]["READING_CODE"]&"##";
    QuerySetCell(tmpqry, 'SENSOR', sIndexinSensorIDs,
    qRowIndex);
    QuerySetCell(tmpqry,
    'TYPE',javacast('String',colArray[qRowIndex]["TYPE"]), qRowIndex);
    QuerySetCell(tmpqry, 'TIMESTAMP2',
    LSParseDateTime(colArray[qRowIndex]["TIMESTAMP2"]), qRowIndex);
    QuerySetCell(tmpqry,
    'ORDER_BY_PARAM',javacast('String',colArray[qRowIndex]["ORDER_BY_PARAM"]),
    qRowIndex);
    QuerySetCell(tmpqry, 'READING_CODE',Temp_readin_code ,
    qRowIndex);
    QuerySetCell(tmpqry,
    'READING',javacast('String',colArray[qRowIndex]["READING"]),
    qRowIndex);
    QuerySetCell(tmpqry,
    'PK_READING',javacast('String',colArray[qRowIndex]["PK_READING"]),
    qRowIndex);
    QuerySetCell(tmpqry,
    'ALARM_STATUS',javacast('String',colArray[qRowIndex]["ALARM_STATUS"]),
    qRowIndex);
    QuerySetCell(tmpqry, 'DURATION',
    javacast('String',colArray[qRowIndex]["DURATION"]), qRowIndex);
    QuerySetCell(tmpqry,
    'DESCRIPTION',javacast('String',colArray[qRowIndex]["DESCRIPTION"]),
    qRowIndex);
    </cfscript>
    </cfloop>
    <cfquery name="qry" dbtype="query" >
    SELECT *
    FROM tmpqry
    ORDER BY #arguments.colSort# ASC
    </cfquery>
    <cfreturn qry >
    </cffunction>
    It is working fine for some date range and and getting above
    mentioned error in sone situation .

    Hi All ,
    Thank you for your support ,
    Finally i have fix the issue using some changes in my
    function in cfc .
    <cffunction name="MDArraySort" Returntype="query"
    access="public" >
    <cfargument name="colArray" type="array"
    required="true">
    <cfargument name="colNames" type="string"
    required="true">
    <cfargument name="colSort" type="string"
    required="true">
    <cfargument name="sensorIDs" type="string"
    required="true">
    <cfscript>
    //Declare variable collection used in function as local
    --->
    var tmpqry =
    Querynew(arguments.colNames,"CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_DATE,CF_SQL_VARCHAR,CF_ SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR,CF_SQL_VARCHAR");
    var qRow = QueryAddRow(tmpqry,
    Arraylen(arguments.colArray));
    </cfscript>
    <cfloop from="1" to="#Arraylen(arguments.colArray)#"
    index="qRowIndex">
    <cfscript>
    // Populate the query table
    QuerySetCell(tmpqry, 'SENSOR',
    colArray[qRowIndex]["SENSOR"], qRowIndex);
    QuerySetCell(tmpqry,
    'TYPE',arguments.colArray[qRowIndex]["TYPE"], qRowIndex);
    QuerySetCell(tmpqry, 'TIMESTAMP2',
    LSParseDateTime(arguments.colArray[qRowIndex]["TIMESTAMP2"]),
    qRowIndex);
    QuerySetCell(tmpqry,
    'ORDER_BY_PARAM',arguments.colArray[qRowIndex]["ORDER_BY_PARAM"],
    qRowIndex);
    QuerySetCell(tmpqry, 'READING_CODE',
    colArray[qRowIndex]["READING_CODE"] , qRowIndex);
    QuerySetCell(tmpqry,
    'READING',arguments.colArray[qRowIndex]["READING"], qRowIndex);
    QuerySetCell(tmpqry,
    'PK_READING',arguments.colArray[qRowIndex]["PK_READING"],
    qRowIndex);
    QuerySetCell(tmpqry,
    'ALARM_STATUS',arguments.colArray[qRowIndex]["ALARM_STATUS"],
    qRowIndex);
    QuerySetCell(tmpqry, 'DURATION',
    arguments.colArray[qRowIndex]["DURATION"], qRowIndex);
    QuerySetCell(tmpqry,
    'DESCRIPTION',arguments.colArray[qRowIndex]["DESCRIPTION"],
    qRowIndex);
    </cfscript>
    </cfloop>
    <cfquery name="qry" dbtype="query" >
    SELECT *
    FROM tmpqry
    ORDER BY #arguments.colSort# ASC
    </cfquery>
    <cfreturn qry >
    </cffunction>
    Rajesh
    SCMS
    India

  • An error in the system has occurred. Please contact the system admin'

    Hi chaps
    So I get this message when I try and click "Solved" :
    An error in the system has occurred. Please contact the system administrator if the problem persists.
    And then when I try to send a 'comment' AppleCare I get
    "An error has occurred. Please try again later".
    Is it me or them ?
    Many thanks Roger

    Hi Roger!
    My reply here Error when trying to mark a reply as "solved" , also has additinal information.
    ali b

  • An error in the system has occurred. Please contact the system administrato

    This error appears when I try to access the Leopard Server- Advanced forum:
    Error
    An error in the system has occurred. Please contact the system administrator if the problem persists.
    Useful links :
    Forum Home -- browse the forums here.
    Search Forums -- visit the search page to query all forum content.

    Hi Roger!
    My reply here Error when trying to mark a reply as "solved" , also has additinal information.
    ali b

  • I have an IPad 4.  After updating the system, when I try to look at picture on Facebook and make it larger, there is just a "circle" in the middle of the page instead of the picture.  Can anyone help me?

    I have an IPad 4.  After updating the system, when I try to look at picture on Facebook and make it larger, there is just a "circle" in the middle of the page instead of the picture.  Can anyone help me?

    Close all open apps by double-tapping the home button, then swiping up and off the screen with the app window (not the smaller icon).
    Reset your device: hold down the home button along with the sleep/wake button until the screen goes black and you see the Apple, then let go. (No data loss)

  • [SOLVED] vi (vim) no longer works properly after updating the system

    After updating the system with pacman -Syu vi stopped working. All syntax colors are gone, and everything is grey. When I press i to enter "insert" mode, editing is not visible. Changes are obscure and you can't tell what you are modifying.  Quitting with :q will still prompt you to use :q! to abort changes, even if no changes were visibly made.
    When scrolling to the beginning or end of a file, the screen flashes with grey glitch like areas.  What happened to my vi!?!?!?!?!?
    This all happened while following the beginner's guide to install arch linux.  I realized this when trying to arbitrarily read a test file I made directly after updating.
    The problems continued to be visible when installing and setting up sudo (those steps are the next steps that require vi)...  I think the sudo installation worked... but my vi is horribly glitchy
    Any ideas?
    Last edited by trusktr (2010-02-19 07:19:55)

    Setting EDITOR does not help in every case. For instance, visudo is by default hard linked to vi. (You can change this, I know. )
    But in fact, vi is only a symlink to ex. So I simply renamed this link and put another symlink to vim (vim-big in my case since I in fact do use the gvim package).
    /usr/bin/vi -> vim-big
    /usr/bin/vi-simple -> ex
    The drawback is that I have to set those links on every vi-update. (But I sure will remember...)
    Last edited by bernarcher (2010-02-19 00:58:57)

  • Getting "An error in the system has occurred" using Safari on Apple site

    When using Safari 3.1 on the Apple site to view the discussion forums I get the message: "An error in the system has occurred. Please contact the system administrator if the problem persists."
    I'm able to use the forums using FireFox.
    No one else seems to be having this problem according to the search function.

    This appears to be a one-off problem, so mark as resolved.

  • Warning: The system has not been taken off maintenance mode completely

    After I enabled Maintenance mode using adadmin, I ran Compile Flexfields. Then I disabled Maintenance mode. But, on the 11i login page, I keep getting a warning message:
    Warning
    The system has not been taken off maintenance mode completely. Please contact your System Administrator.
    I am sure I disabled the Maintenance mode in adadmin. Why I still get the warning? How to fix it? Thanks a lot.

    Thanks a lot. That is the fix.
    One more question. After I ran "Compile Flexfields", I got
    Number of successful descriptive flex compilations : 7520
    Number of failed descriptive flex compilations : 1
    How can I find the failed description flex? The log does not give info on this. And, how to fix it?
    Thanks a lot for your help.

  • I updated the system to OS X Mavericks and now I cannot open iPhoto with all my pics in. I trying to update iPhoto and  this note appears: "Update unavailable with this Apple ID"

    iMac OS X 10.9.4
    3.06 GHz Intel Core 2 Duo
    4 GB 1067 MHz  DDR3
    I updated the system to OS X Mavericks and now I cannot open iPhoto with all my pics in.
    I trying to update iPhoto 9.5.1 and this note appears:

    Make sure you're logged in to the App Store with the same Apple ID that you used to download and install Mavericks.  If necessary, log out of the App Store and log back in.
    If that fails  contact the App Store support personnel via the link circled in this screenshot:

Maybe you are looking for

  • New computer files transfer

    Just bought a new macbook and wanting to transfer files from an imac (which has OX10.2.8) using firewire cord. When I have the imac set up as an external drive (icon showing) I get a message on the macbook saying that the imac does not have OS X (whi

  • Droid 3 touch screen unresponsive

    I was wondering if there is an alternate way of removing an app other than using the android market. My droid 3's touch screen is unresponsive and I know that the app Go Locker is causing the problem.

  • BADI CRM_MKTPL

    Hi, In transaction CRM_MKTPL - Marketing Planner I need to set by default the field Profile (CRM_JSTO-STSMA). I'm trying to use the method MODIFY_FIELD_ATTR in the badi CRM_MKTPL. But.... i'm a bit confused. Has someone already done this kind of thin

  • Failure level 3 caption box appears twice?

    Sorry for the multiple posts, but I really need an answer to this.  Any ideas? My scenario: I have a graded single response multiple choice question with five answers.  If correct, Jump to Slide 3.  If wrong, I allow 4 attempts with 3 failure levels,

  • Best way to create a new property

    Scenario: I have 4 applications and each of them need a Consolidatio property. A Consolidation property has been created in DRM with Add, Sub,Mult, Div etc. as list values. Now I want to create 4 new properties for Apps A, B, C and D. I want to creat