Comments (6)
Passwordless login is disabled by default on Ubuntu 16+, I'd rather suggest to deploy ssh keys.
from community-templates.
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.
As simple as that... It should be on the preseed_default_finish by default.
Thx a lot.
from community-templates.
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.
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.
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)
- Add support for non-free and contrib repositories to Debian HOT 3
- replace authconfig on RHEL/CentOS 8
- iPXE intermediate template
- Templates for iPXE support
- Error on use Kickstart defaults - NoMethodError: undefined method `host_param' HOT 5
- Remove () from filename HOT 3
- puppet_run_once_-_ssh_default.erb not working on Debian and Ubuntu HOT 1
- Make template default HOT 2
- Ansible Power action doesn't trigger a reboot HOT 1
- iPXE global default menus items do not match content HOT 1
- PXELinux default local boot does not show menu
- Provisioning RHEL 8 with network bond configuration results in system with all nics down
- Report of applicable packages HOT 2
- Wrong repo name for puppet v6 HOT 1
- AutoYaST SLES 15 HOT 1
- [RFC] Anyone thought about implementing `nmcli` in the templates? HOT 3
- Outdated Yum Repo URL for Puppet 6 HOT 1
- Add username & password to user-data template HOT 1
- kickstart default ipxe using wrong variable name for ksdevice parameter HOT 1
- ipxe_global_default.erb first entry missing httpboot in path HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from community-templates.