howto:setup-sscs-linux-account-public-keys
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howto:setup-sscs-linux-account-public-keys [2025/03/10 20:25] – [One-stop script to create the sscs account] jnilsson | howto:setup-sscs-linux-account-public-keys [2025/03/12 22:01] (current) – [One-stop script to create the sscs account] jnilsson | ||
---|---|---|---|
Line 11: | Line 11: | ||
< | < | ||
curl -O -L https:// | curl -O -L https:// | ||
+ | chmod +x ./ | ||
sudo ./ | sudo ./ | ||
</ | </ | ||
Line 18: | Line 19: | ||
SSCS_HOME=/ | SSCS_HOME=/ | ||
sudo useradd -c " | sudo useradd -c " | ||
- | echo " | + | echo " |
sudo mkdir -p $SSCS_HOME/ | sudo mkdir -p $SSCS_HOME/ | ||
sudo chmod 700 $SSCS_HOME/ | sudo chmod 700 $SSCS_HOME/ | ||
sudo touch $SSCS_HOME/ | sudo touch $SSCS_HOME/ | ||
sudo chmod 600 $SSCS_HOME/ | sudo chmod 600 $SSCS_HOME/ | ||
- | echo " | + | sudo chown -R sscs:sscs $SSCS_HOME/ |
+ | echo " | ||
+ | echo " | ||
+ | echo " | ||
+ | echo " | ||
+ | echo " | ||
+ | echo " | ||
</ | </ | ||
If you don't want the home directory to be /home/sscs, you can easily set your own SSCS_HOME variable to whatever location you choose and then copy/paste the rest of the commands. Or if you download the '' | If you don't want the home directory to be /home/sscs, you can easily set your own SSCS_HOME variable to whatever location you choose and then copy/paste the rest of the commands. Or if you download the '' | ||
+ | |||
+ | |||
+ | ===== How to: Disable SSH Password Authentication ====== | ||
+ | |||
+ | Disabling Password Authentication is generally as simple as setting the option '' | ||
+ | |||
+ | However, we've discovered that some linux distributions add another configuration file **/ | ||
+ | |||
+ | Therefore, the easiest way to universally disable password authentication is to create a new file that sorts lexicographically before any other files that might be created in there, such as **00-disable-password-auth.conf**: | ||
+ | < | ||
+ | PasswordAuthentication no | ||
+ | </ | ||
+ | |||
+ | After setting the '' | ||
+ | |||
+ | * on Debian/ | ||
+ | systemctl reload ssh | ||
+ | </ | ||
+ | * on RHEL/ | ||
+ | systemctl reload sshd | ||
+ | </ | ||
+ |
howto/setup-sscs-linux-account-public-keys.1741638342.txt.gz · Last modified: 2025/03/10 20:25 by jnilsson