Updated SSH (markdown)

oooo-ps 2025-06-27 19:21:23 +03:00
parent 48e65772bb
commit 4b5409890c

10
SSH.md

@ -1,8 +1,6 @@
## Linux The tips below provide configuration details for accessing remote files over SSH.
The tips below provide configuration details for accessing remote files over SSH and simply syncing your local content with the server. ## System user
### Create system user
1. `useradd -m nexy` - create new system user with its home directory 1. `useradd -m nexy` - create new system user with its home directory
2. `passwd nexy` - provide strong password 2. `passwd nexy` - provide strong password
@ -10,7 +8,7 @@ The tips below provide configuration details for accessing remote files over SSH
4. `cd` - navigate to the home folder 4. `cd` - navigate to the home folder
5. `mkdir /home/nexy/public` - create location for the public fies 5. `mkdir /home/nexy/public` - create location for the public fies
### Firewall ## Firewall
Don't forget to open the SSH port to access your server remotely: Don't forget to open the SSH port to access your server remotely:
@ -20,7 +18,7 @@ sudo ufw allow 22
* replace `22` with your custom port (if it's not default) * replace `22` with your custom port (if it's not default)
* use additional filters to allow access from specified hosts. * use additional filters to allow access from specified hosts.
### VSCode ## VSCode
This example is useful for syncing text files on save. Make sure you have this [SSH extension](https://marketplace.visualstudio.com/items?itemName=Natizyskunk.sftp) installed to continue. This example is useful for syncing text files on save. Make sure you have this [SSH extension](https://marketplace.visualstudio.com/items?itemName=Natizyskunk.sftp) installed to continue.