EFA4 Initial SSH

Bugs in eFa 4
Post Reply
henk
Posts: 517
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

EFA4 Initial SSH

Post by henk »

In the process of testing efa4 I did want to change some settings before the Initial configure script.
As root will not be able to login ( due ssh policy and Selinux) and service sshd is disabled, as good security policy, by default

To be able to login with SSH. ( to be able to copy and paste and watch the configure process and logs)
Do not use this user to exec the install script!

First create tmp admin user for SSH access

Code: Select all

useradd admin
usermod -aG wheel admin
passwd admin
Decide if you want to enable ssh

Code: Select all

systemctl enable sshd
Start sshd

Code: Select all

systemctl start sshd
When finisched you can delete the tmp admin user and use the CLI user created by the EFA configure script, or even disable ssh.
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: EFA4 Initial SSH

Post by shawniverson »

This is a good method, worthy of a wiki article. Relevant to a Kickstart build.

I will also add that you can build without using Kickstart to have an active account with SSH enabled with the password of your choice, which is suitable for VPS/Cloud/LXC, and should also cooperate with cloud-init.
Post Reply