Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Failed building SSH client: SSH_AUTH_SOCK environment variable is not set. Verify ssh-agent is running. #1480

@ghy200692162

Description

@ghy200692162

When I try to use command 'fleetctl ssh simeunit.service' I got the error message below

Failed building SSH client: SSH_AUTH_SOCK environment variable is not set. Verify ssh-agent is running. See https://github.com/coreos/fleet/blob/master/Documentation/using-the-client.md for help.

Then I fixed this error use the following command,just start the ssh agent and add the public key

1.eval ssh-agent

2.ssh-add ~/.ssh/some_key

While I have to repeat the process every time when I login the System.

I open an issue here to show the way to add the command to $HOME/~bashrc
But it looks like to modify the configuration in the System scope.

How can I start ssh-agent and add public key when fleet init after my coreos has been configured and started?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions