Code Monkey home page Code Monkey logo

Comments (6)

mmoll avatar mmoll commented on August 16, 2024

Passwordless login is disabled by default on Ubuntu 16+, I'd rather suggest to deploy ssh keys.

from community-templates.

mmoll avatar mmoll commented on August 16, 2024

FWIW, I'm using:

diff --git a/provisioning_templates/finish/preseed_default_finish.erb b/provisioning_templates/finish/preseed_default_finish.erb
index 1bb0faa..b7192a7 100644
--- a/provisioning_templates/finish/preseed_default_finish.erb
+++ b/provisioning_templates/finish/preseed_default_finish.erb
@@ -49,4 +49,7 @@ oses:
 <% end -%>
 
 <%= snippet 'preseed_networking_setup' %>
+
+sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
+
 /usr/bin/wget --no-proxy --quiet --output-document=/dev/null --no-check-certificate <%= foreman_url('built') %>

from community-templates.

Mysteriosis avatar Mysteriosis commented on August 16, 2024

As simple as that... It should be on the preseed_default_finish by default.
Thx a lot.

from community-templates.

mmoll avatar mmoll commented on August 16, 2024

While I understand that it's annoying, staying with the OS defaults is IMHO the way to go for these templates. The idea of Foreman is also to (be able to) deploy a configuration management agent like Puppet to the system at build time, so it's easy to roll out the needed keys.

from community-templates.

ekohl avatar ekohl commented on August 16, 2024

Note we also have https://github.com/theforeman/community-templates/blob/develop/provisioning_templates/snippet/create_users.erb to create users based on the owner in Foreman. You can then set your SSH key(s) in the user settings.

from community-templates.

Mysteriosis avatar Mysteriosis commented on August 16, 2024

Actually tried before, but without @mmoll solution, it didn't solve my original problem.
I will try it again on a next provisioning, thanks.

from community-templates.

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.