Updating ssh agent logic