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

Lando and ssh agent not playing nicely together. #86

Closed
trackleft opened this issue Apr 28, 2022 · 2 comments
Closed

Lando and ssh agent not playing nicely together. #86

trackleft opened this issue Apr 28, 2022 · 2 comments

Comments

@trackleft
Copy link
Member

Problem/Motivation

I have an ssh key integrated with ssh-agent, but when I try to pull a site from pantheon I get a request for a password that I do not actually have since I am using SSO connected to my pantheon account.

Describe the bug

Lando is not communicating with ssh-agent. This issue, maybe: lando/lando#478

I am not 100% sure what is happening here since I updated my ~/.ssh/config file like this i haven't seen the error.

Host *.drush.in
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.lando/keys/pantheon.lando.id_rsa

Host *.drush.in
    StrictHostKeyChecking no
    # The settings on the next two lines are temporary until Pantheon updates the available key types.
    # If 'PubkeyAcceptedAlgorithms' causes an error, remove it.
    HostkeyAlgorithms +ssh-rsa
    PubkeyAcceptedAlgorithms +ssh-rsa

Host *
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_rsa

At any rate, I'll provide a patch that seems to have always worked when I did have the issue.

@michaelhagedon
Copy link

Does your agent use a socket file? I've found that mounting the socket file into the appserver container lets my agent communicate with the container. I'm not using the standard ssh-agent, though.

@trackleft
Copy link
Member Author

I think we can probably close this issue, since I haven't seen anyone able to reproduce it.

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

Successfully merging a pull request may close this issue.

2 participants