Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agent global not running #6

Open
pannet1 opened this issue Sep 21, 2023 · 5 comments
Open

agent global not running #6

pannet1 opened this issue Sep 21, 2023 · 5 comments

Comments

@pannet1
Copy link

pannet1 commented Sep 21, 2023

`repassh` was invoked by ``, not using `sys.exit`.
Will run '/usr/bin/ssh' as ssh binary - set by user via BINARY_SSH
Warning: no keys found for identity carrierc in:
['/home/pannet1/.ssh/identities/carrierc']
Agent *global* not running
Agent for identity carrierc ready
All keys already loaded
+ . /home/pannet1/.ssh/agents/agent-carrierc-karthick-pc
+ exec /usr/bin/ssh -oUseRoaming=no
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address]
           [-c cipher_spec] [-D [bind_address:]port] [-E log_file]
           [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file]
           [-J destination] [-L address] [-l login_name] [-m mac_spec]
           [-O ctl_cmd] [-o option] [-P tag] [-p port] [-Q query_option]
           [-R address] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
           destination [command [argument ...]]
           
           ```
   whenever i invoke xonsh i have the above output. this affects even atleast one of my nvim plugin.
   
   i dont have any clue on whats happening.  can you please help me fix this. except the error message and failure to run some vim plugin, i dont have any problem in ssh ing my server or pushing to github
@pannet1
Copy link
Author

pannet1 commented Sep 22, 2023

seems to be a repassh config issue. adjust the config so that it will not try to use existing agent.

@dyuri
Copy link
Owner

dyuri commented Sep 22, 2023

But that's the point, to use the agent if it's already running.
If repassh as ssh replacement have some issues for you, you can try to disable this xontrib and use repassh directly if you want it (for example by setting $GIT_SSH="repassh"), and it won't affect any other stuff that calls the ssh binary directly.

@pannet1
Copy link
Author

pannet1 commented Sep 22, 2023

{
  "KNOCK_ARGV": [
    [
      "remotehost",
      {
        "host": "example.com",
        "ports": [
          123,
          234,
          345
        ],
        "delay": 50
      }
    ]
  ],
  "DEFAULT_IDENTITY": "username",
  "USE_RUNNING_AGENT": true,
  "SSH_ADD_DEFAULT_OPTIONS": "-t 7200",
  "VERBOSITY": 4
}

it seems that the problem is with repassh itself. when i am using running agent, then i have this issue. can you suggest how to make repassh use the running agent.

@dyuri
Copy link
Owner

dyuri commented Sep 25, 2023

Unfortunately I cannot reproduce this issue. Could you share more information how do you start your ssh-agent?
Why is your DEFAULT_IDENTITY set to username? Is username your username for sure? Since your home folder is pannet1, I'd guess it's the same.

@pannet1
Copy link
Author

pannet1 commented Sep 26, 2023

Unfortunately I cannot reproduce this issue. Could you share more information how do you start your ssh-agent? Why is your DEFAULT_IDENTITY set to username? Is username your username for sure? Since your home folder is pannet1, I'd guess it's the same.

thanks for the reply yuri,
i was never mindful of starting my ssh-agent. it simply works whenever i ssh or scp into my server. i also have setup the git credentials and am able to simple commit to github without any problems.

sorry, about my username, it is pannet1 only. i just thought of hiding it here in the public like my server name (example.com)

for the moment i hopped to bash and did eval ssh-agent and i see that the process is running. can you guide me through the troubleshooting steps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants