Connect to UiO
You're working from home, on your laptop. The ssh connection lets you run WRF on abel, open and edit files on sverdrup, rossby, ice and jern. Everything runs smoothly until you decide to transfer any of your files to your laptop's desktop or upload it to an email that you're editing in a web browser opened from your laptop.
Contents
How to access your files at the UiO network?
From Linux
Terminal
(See also uio.no/tjenester/it/nett/utenfra/hjemmeomrade/linux/SSHFS/ and termvakt.uio.no/Fjerninnlogging
First time, you need to install sshfs and such:
# sshfs - set of commands written by Arnstein Orten sudo apt-get install sshfs # sshfs connects your laptio to your user at UiO sudo gpasswd -a $USER fuse # allows your user to handle the file system echo "ServerAliveInterval 5" >> ~/.ssh/config # keeps the connection
Then, create a folder called uiohome on your laptop
mkdir ~/uiohome # to mount
To connect, write the following and change $USER (both places) to your UiO username.
sshfs -o idmap=user $USER@hjemme.uio.no:/uio/kant/geo-mhgeo-u1/$USER ~/uiohome
You may add this line to the bottom of the .bashrc script, to get reminded what the line was.
echo "to mount: sshfs -o idmap=user $USER@hjemme.uio.no:/uio/kant/geo-mhgeo-u1/$USER ~/uiohome"
Graphical interface: ssh
From Ubuntu, you may click the "Files" icon; scroll down to "connect to server" and type
ssh:hjemme.uio.no
Log in with username and password.
Graphical interface: sshfs (works on Redhat laptops. For Ubuntu, see above or ask the IT)
On your laptop, create an empty folder called "uio" under /home/irenebn . Copy the following file to /home/irenebn/bin and call it "mountuio" (note! change all instances of irenebn into your username):
#!/bin/bash if `mount | grep 'login\.uio\.no' > /dev/null`; then fusermount -u "$HOME/uio" else sshfs "irenebn@login.uio.no:" "$HOME/uio" fi
To mount your home directory (accessible from sverdrup, login and other UiO machines) onto your laptop, run this command in the terminal:
mountuio
You may want to add a shortcut on your laptop, so you don't have to type mountuio each morning. I type win+U on startup.
On your Redhat laptop, go to System/preferences/keyboard shortcuts add name = Montere hjemmeområdet med sshfs shortcut = Mod4+U (Mod4 = windows button)
If it stops working, for instance after updates, try this
sudo yum install sshfs mountuio cd uio/pc
or check your access:
sudo usermod -G fuse -a irenebn
If you get this error message,
[irenebn@amfibol ~]$ mountuio fuse: mountpoint is not empty fuse: if you are sure this is safe, use the 'nonempty' mount option
check that the folder "uio" under /home/irenebn is EMPTY.
From Windows
To work on UiO files
Use Webdrive. See Montering_av_hjemmeområdet_med_WebDrive
To transfer files
Use WinSCP. See termvakt.uio.no/Fjerninnlogging#WinSCP