2022-06-25 11:38:18 +02:00
|
|
|
---
|
|
|
|
title: SSHFS
|
2022-11-19 15:25:20 +01:00
|
|
|
visible: true
|
2022-06-25 11:38:18 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
[toc]
|
2023-02-23 14:48:51 +01:00
|
|
|
|
2022-06-25 11:38:18 +02:00
|
|
|
## Linux Client
|
|
|
|
|
2023-02-23 14:48:51 +01:00
|
|
|
`# apt install sshfs`
|
|
|
|
|
|
|
|
`# pacman -S sshfs`
|
2022-06-25 11:38:18 +02:00
|
|
|
|
|
|
|
Mount remote filesystem
|
2023-02-23 14:48:51 +01:00
|
|
|
`sshfs (user)@(ip/domain):(remotepath) (mountpoint)`
|
2022-06-25 11:38:18 +02:00
|
|
|
|
2023-02-23 14:48:51 +01:00
|
|
|
_Example with Windows host:_
|
|
|
|
`sshfs admin@192.168.1.123:/ /mnt/tmp`
|
2022-06-25 11:38:18 +02:00
|
|
|
|
|
|
|
## Windows Client
|
2023-02-23 14:48:51 +01:00
|
|
|
|
2022-06-25 11:38:18 +02:00
|
|
|
Install [WinFSP](https://github.com/billziss-gh/winfsp)
|
2023-02-23 14:48:51 +01:00
|
|
|
Install [sshfs-win](https://github.com/billziss-gh/sshfs-win)
|
2022-06-25 11:38:18 +02:00
|
|
|
|
|
|
|
### Usage
|
2023-02-23 14:48:51 +01:00
|
|
|
|
|
|
|
_No path = start in remote user's home directory_
|
2022-06-25 11:38:18 +02:00
|
|
|
|
|
|
|
#### GUI
|
2023-02-23 14:48:51 +01:00
|
|
|
|
2022-06-25 11:38:18 +02:00
|
|
|
Map a new network drive in Windows Explorer
|
2023-02-23 14:48:51 +01:00
|
|
|
`\\sshfs\(user)@(ip/domain)\(path)`
|
2022-06-25 11:38:18 +02:00
|
|
|
|
|
|
|
#### Terminal
|
2023-02-23 14:48:51 +01:00
|
|
|
|
2022-06-25 11:38:18 +02:00
|
|
|
Mount drive
|
2023-02-23 14:48:51 +01:00
|
|
|
`net use (letter): \\sshfs\(user)@(ip/domain)\(path)`
|
2022-06-25 11:38:18 +02:00
|
|
|
|
|
|
|
Show mounted drives
|
2023-02-23 14:48:51 +01:00
|
|
|
`net use`
|
2022-06-25 11:38:18 +02:00
|
|
|
|
|
|
|
Remove mounted drive
|
2023-02-23 14:48:51 +01:00
|
|
|
`net use (letter): /delete`
|
2022-06-25 11:38:18 +02:00
|
|
|
|
|
|
|
## References
|
2023-02-23 14:48:51 +01:00
|
|
|
|
|
|
|
- [sshfs](https://github.com/libfuse/sshfs)
|
|
|
|
- [sshfs-win](https://github.com/billziss-gh/sshfs-win)
|