Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
access_to_home_dir_with_sshfs [2023/10/18 10:34] – 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. |
+ | |||
+ | 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 | If you just want to do this once, mount it from stafflogin; you use the command | ||
Line 10: | Line 12: | ||
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 **id_rsa.pub** file to your **~/ | + | 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 **id_rsa.pub** file to your **~/ |
Once public key is in place, you should then be able to mount the home directory directly from stafflogin. Like this: **sshfs < | 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 **sudo apt-get install libpam_mount**) or your OS's ' | You can either use pam_mount (to install run **sudo apt-get install libpam_mount**) or your OS's ' | ||
Line 17: | Line 19: | ||
</ | </ | ||
- | **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 |