Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
access_to_home_dir_with_sshfs [2021/02/02 14:48] – created ac1mde | access_to_home_dir_with_sshfs [2023/10/18 11:06] (current) – ac1mde | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | **SSHFS to home directory** | + | **SSHFS to home directory |
- | You can mount your home directory onto a Linux desktop using SSHFS, so that it appears as a local folder. | + | On a Linux desktop, you can mount your home directory onto a Linux desktop using SSHFS, so that it appears as a local folder. |
- | If you just want to do this once, mount it from stafflogin; you use the command | + | Firstly, the SSHFS package must be installed: **sudo apt install sshfs** |
+ | |||
+ | If you just want to do this once, mount it from stafflogin; you use the command | ||
+ | < | ||
You will need to mkdir H-drive, if you don't have one already. (or mount it on some other already existing folder) | You will need to mkdir H-drive, if you don't have one already. (or mount it on some other already existing folder) | ||
If you don't have private/ | If you don't have private/ | ||
- | **Automatic mount of homedir on login** | + | **Automatic mount of homedir on login**\\ |
You can also have your home directory mounted automatically from stafflogin every time you log in. This can be especially useful for those who are administering their own Linux desktop, as they won't have the homedir mounted automatically by default. The process varies depending on the Linux OS you're using, but this is the general idea: | You can also have your home directory mounted automatically from stafflogin every time you log in. This can be especially useful for those who are administering their own Linux desktop, as they won't have the homedir mounted automatically by default. The process varies depending on the Linux OS you're using, but this is the general idea: | ||
- | First you have to set up public-private key authentication without passphrase. To do this, you have to run ssh-keygen, don't give a passphrase, then copy the contents of the resulting | + | First you have to set up public-private key authentication without passphrase. To do this, you have to run **ssh-keygen**, don't give a passphrase, then copy the contents of the resulting |
- | Once public key is in place, you should then be able to mount the home directory directly from stafflogin. Like this: '' | + | Once public key is in place, you should then be able to mount the home directory directly from stafflogin. Like this: **sshfs < |
- | You can either use pam_mount (to install run apt-get install libpam_mount) or your OS's ' | + | You can either use pam_mount (to install run **sudo |
< | < | ||
<volume fstype=" | <volume fstype=" | ||
</ | </ | ||
- | **SSHFS | + | ------------ |
- | Simple answer: not really.\\ | + | |
- | There is a project to provide SSHFS client for Windows, | + | **SSHFS |
- | It's probably easier, and certainly more reliable, to use WinSCP (winscp.net) which is an SFTP client; the interface provides you with a folder that you can drag and drop to just like with Windows Explorer (or whatever | + | |
+ | If you have WSL (Windows Subsystem for Linux) on a Windows |