Ubuntu/Debian:
sudo apt-get install sshfs
CentOS/RHEL:
sudo yum install sshfs
with ssh key:
sudo sshfs -o allow_other,IdentityFile=/home/<local-name>/.ssh/id_rsa <rgb-name>@halle.in.tum.de:/u/halle/<rgb-name>/home_at /mnt/halle
with password:
sudo sshfs -o allow_other <rgb-name>@halle.in.tum.de:/u/halle/<rgb-name>/home_at /mnt/halle
Now you can access the folder /u/halle/<rgb-name>/home
via /mnt/halle
on your local machine.
You can also change the mount point /mnt/halle
to any other folder you like.
cd /mnt/halle
ls -al
sudo umount /mnt/halle
*See also Sources for more information about Windows and MacOS.
Short the command with alias and add it to ~/.bashrc
:
alias mount-tum='sudo sshfs -o allow_other,IdentityFile=/home/<local-name>/.ssh/id_rsa <rgb-name>@halle.in.tum.de:/u/halle/<rgb-name>/home_at /mnt/halle'
alias umount-tum='sudo umount /mnt/halle'
Now you can mount/unmount the folder with mount-tum
and umount-tum
respectively.
Add the following line to /etc/fstab
to mount the folder automatically at startup:
<rgb-name>@halle.in.tum.de:/u/halle/<rgb-name>/home_at /mnt/halle fuse.sshfs allow_other,_netdev,user,idmap=user,transform_symlinks,identityfile=/home/<local-name>/.ssh/id_rsa 0 0
For Android you can use Dateimanager to access the Rechnerhalle
on your phone.
Download the App and select Remote
-> +
-> SFTP
and fill in the following information:
- Host:
halle.in.tum.de
- Port:
22
- Username:
<rgb-name>
- Password:
<rgb-password>
Alternatively you can use a ssh key
instead of the password (select more
for this option).