sshpw
The sshpw Kickstart command is optional. During the installation, you can interact with the installation program and monitor its progress over an SSH connection.
Use the sshpw command to create temporary accounts through which to log in. Each instance of the command creates a separate account that exists only in the installation environment. These accounts are not transferred to the installed system.
- Syntax
-
sshpw --username=name [OPTIONS] password - Mandatory options
-
--username=name - Provides the name of the user. This option is required.password- The password to use for the user. This argument is required.
- Optional options
-
--iscrypted- If this option is present, the password argument is assumed to already be encrypted. This option is mutually exclusive with--plaintext. To create an encrypted password, you can use Python:$ python3 -c 'import crypt,getpass;pw=getpass.getpass();print(crypt.crypt(pw) if (pw==getpass.getpass("Confirm: ")) else exit())'This generates a sha512 crypt-compatible hash of your password by using a random salt.
--plaintext- If this option is present, the password argument is assumed to be in plain text. This option is mutually exclusive with--iscrypted--lock- If this option is present, this account is locked by default. This means that the user will not be able to log in from the console.--sshkey- If this option is present, then the <password> string is interpreted as an ssh key value.
- Notes
-
- By default, the
sshserver is not started during the installation. To makesshavailable during the installation, boot the system with the kernel boot optioninst.sshd. - If you want to disable root
sshaccess, while allowing another usersshaccess, use the following:sshpw --username=example_usernameexample_password --plaintextsshpw --username=root example_password --lock - To disable root
sshaccess, use the following:sshpw --username=root example_password --lock
- By default, the