File transfer

From your windows machine

From/to your Linux machine

From your linux machine

scp-hades local_file cluster@VM_IP:
scp -o 'ProxyCommand ssh sshfwd@hades.hevs.ch -W %h:%p' localfile cluster@VM_IP:

To your linux machine

scp vmfile localuser@YOUR_IP:

Using rsync

rsync can be used to transfer files both ways:

From the VM

rsync -azv -e 'ssh -A -J sshfwd@hades.hevs.ch' cluster@VM_IP:file_on_the_vm local_file

To the VM

rsync -azv -e 'ssh -A -J sshfwd@hades.hevs.ch' local_file cluster@VM_IP:file_on_the_vm

From a FTP/HTTP server

Virtual machines have access to the internet and files can be transfered directy, for intsance getting the hades logo using wget:

wget http://hevs-isi.github.io/hades/images/logo1.png

From/to the HEI network

HEI network drives are available from the VMs, and here is how to mount them.

Required software

sudo apt-get install cifs-utils

List of drives

The sinf provides a list of available drives. Another way to obtain this this list is by using the net use command on a windows machine with the drives already connected.

Mounting from command line

Example : Mounting I:\ in ./toto

mkdir -p toto
sudo mount -t cifs -o vers=2.0,iocharset=utf8,uid=$(id -u),gid=$(id -g),username=username_goes_here //datahei-i.hevs.ch/hei toto

:exclamation: Don’t include smb: in the server path

:exclamation: vers=2.0 must be replaced by vers=3 on some newer servers.

Then unmount when you’re done (since deleting the mount point could delete the whole mounted drive).

sudo umount toto

This method is not recommended, since deleting the mount point could delete the whole mounted drive.

Example : mount I:\ in /mnt/i

  1. Create the mount destination
    mkdir /mnt/i
    
  2. Add this line to /etc/fstab:
     //datahei.hevs.ch/hei  /mnt/i  cifs  vers=2.0,iocharset=utf8,uid=1000,gid=1000,username=username_goes_here,password=*****  0  0
    

    :exclamation: Don’t include smb: in the server path

:exclamation: vers=2.0 must be replaced by vers=3 on some newer servers.