Page 1 of 1

EFA4 Initial SSH

Posted: 09 Mar 2019 11:27
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.

Re: EFA4 Initial SSH

Posted: 09 Mar 2019 15:54
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.