Coder Social home page Coder Social logo

Issues with ssh key handling about workshops HOT 3 CLOSED

ansible avatar ansible commented on August 18, 2024
Issues with ssh key handling

from workshops.

Comments (3)

IPvSean avatar IPvSean commented on August 18, 2024

The provisioner pauses while trying to trust the newly created ssh key

Do you know which task you were on?

from workshops.

IPvSean avatar IPvSean commented on August 18, 2024

@gdykeman @kyleabenson @jmcleroy

I think I see the issue finally that is happening on some installs. The ssh-add seems to be a bad way to create and add a SSH key on the fly. After reading through http://rabexc.org/posts/pitfalls-of-ssh-agents I realized the the ssh-add might work on certain distributions, but not all. I think RHEL/CENTOS 7.5 doesn't start ssh agents by default... but we also don't want to make the playbook so specific to RHEL that it won't work on MacOS (or wahtever else)

So what I did is just deprecated the requirement for ssh-add. If the host operating system DOES have ssh-agent running it will use ssh-add, otherwise it use lineinfile to add an identifyfile like this->

[sean@centos provisioner]$ cat ~/.ssh/config
Host *
     User ec2-user
     IdentityFile /home/ec2-user/.ssh/aws-private.pem

That way it will use the file, rather than relying on ssh-add. This SEEMS to work. Can one of you try this from Engine? After we get it working on Engine I can try tower.

from workshops.

IPvSean avatar IPvSean commented on August 18, 2024

closing as I think this is fixed now, please reopen with any issue @kyleabenson

from workshops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.