hadesscp:// URLs can
be used to copy files using WinSCP.scp-hades local_file cluster@VM_IP:scp
scp -o 'ProxyCommand ssh sshfwd@hades.hevs.ch -W %h:%p' localfile cluster@VM_IP:scp vmfile localuser@YOUR_IP:rsync
rsync can be used to transfer files both ways:
rsync -azv -e 'ssh -A -J sshfwd@hades.hevs.ch' cluster@VM_IP:file_on_the_vm local_filersync -azv -e 'ssh -A -J sshfwd@hades.hevs.ch' local_file cluster@VM_IP:file_on_the_vmVirtual 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.pngHEI network drives are available from the VMs, and here is how to mount them.
sudo apt-get install cifs-utilsThe 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.
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
Don’t include smb: in the server path
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 totoThis method is not recommended, since deleting the mount point could delete the whole mounted drive.
Example : mount I:\ in /mnt/i
mkdir /mnt/i
/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
Don’t include smb: in the server path
vers=2.0 must be replaced by vers=3 on some newer servers.