Update README

This commit is contained in:
whitney 2024-09-21 23:28:55 -07:00
parent a47dbb3891
commit d9def617af

View File

@ -30,6 +30,8 @@ Olomana, the web server will be a significant upgrade over its predecessor. I am
### Software ### Software
#### OpenSSH #### OpenSSH
##### Server
``` ```
sudo apt-get install openssh-server sudo apt-get install openssh-server
``` ```
@ -39,6 +41,9 @@ sudo ufw enable
sudo ufw allow 22 sudo ufw allow 22
sudo ufw reload sudo ufw reload
``` ```
##### Client Setup
If a client will be connecting to this server and you're configuring it now, follow the next steps to configure that client.
On the client, generate a new SSH key On the client, generate a new SSH key
``` ```
ssh-keygen -t rsa -C "your-email@example.com" ssh-keygen -t rsa -C "your-email@example.com"
@ -49,7 +54,7 @@ Host 192.168.1.xxx
User olomana User olomana
IdentityFile ~/.ssh/id_rsa IdentityFile ~/.ssh/id_rsa
``` ```
On the server, edit `/etc/ssh/sshd_config` to disable password authentication so users must use ssh key. On the server, edit `/etc/ssh/sshd_config` to disable password authentication so users must use ssh key to connect.
``` ```
PasswordAuthentication no PasswordAuthentication no
PubkeyAuthentication yes PubkeyAuthentication yes