Create sshfs-fstab.md

This commit is contained in:
ruslan 2024-09-19 13:29:15 +02:00 committed by GitHub
parent 53c9288161
commit 5429fe9431
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,24 @@
---
title: Автомонтирование SSHFS
description: SSHFS + fstab
date: 2024-09-19T13:28:00+02:00
tags: [linux, ssh]
---
## Установка пакета на клиенте
```shell
apt -y install sshfs
```
## Добавление строки в /etc/fstab
```config
<user>@<server-fqdn>:<remote-dir> <local-dir> sshfs allow_other,reconnect 0
```
## Проверка монтирования
```shell
mount -a
```