How to create a user with a non-standard home directory
Environment
Red Hat Enterprise Linux
openssh
Issue
How to create an
SSH
user with a non-standard home directory.
Resolution
Create the home directory for the user.
For example:
Apply the correct
SELinux
label.
For example:
Create the user and specify the home directory.
For example:
Change the file permission and ownership of the home directory.
For example:
Use the
ssh-copy-id
command to copy thessh
key from the client to the server.
For example:
Apply the correct
SELinux
security context to theauthorized_keys
file.
For example:
Verify you can log in successfully.
PreviousConfigure Ubuntu 22.04 as a DNS server using ControlDNextHow to create a chroot sftp user with logging on a non-standard home directory
Last updated