Remote

From SGEES Wiki
Revision as of 07:39, 31 March 2020 by Admin (talk | contribs)
Jump to navigation Jump to search

From home

From Linux computer

VPN client installing

Install openconnect: For Ubuntu (CLI and GUI)

sudo apt install openconnect
sudo apt install network-manager-openconnect network-manager-openconnect-gnome

Start VPN client either from command line:

sudo openconnect vpn.vuw.ac.nz

You might see some notifications about failures, e.g.:

...
Failed to read from SSL socket: The transmitted packet is too large (EMSGSIZE).
Failed to recv DPD request (1406)
...

however they can be safely ignored.

The VPN session can be terminated by quitting openconnect - i.e. via CTRL-C.

Another way to start it is GUI - create a new VPN connection in Network Manager settings as "Cisco AnyConnect or openconnect" and "vpn.vuw.ac.nz" gateway and activate it.

Use your university staff login and password for authentication.

Linux essential tools

Most of tools you might need are included into standard Linux distributions by default. There is a good chance you've got them already installed. You may need:

  1. SSH client: sudo apt install openssh-client
  2. rsync client: sudo apt install rsync
  3. x2Go client: sudo apt install x2goclient
  4. sshfs (to mount server folder over SSH): sudo apt install sshfs
  5. RDP client (for connecting to Windows): Remmina. As Microsoft have made some changes in RDP protocol recently, you may need to use the most recent version not included in base Ubuntu repo yet:
sudo add-apt-repository ppa:remmina-ppa-team/remmina-next
sudo apt install remmina

From MacOS computer

VPN client installing

Navigate to https://vpn.vuw.ac.nz. Login with your university staff login and password and get Cisco AnyConnect Client. Download, install and run it. Connect to "vpn.vuw.ac.nz" and use your university staff credentials when prompted for login and password.

MacOS essential tools

  1. SSH client: should be installed as part of base MacOS
  2. rsync client: should be installed as part of base MacOS
  3. x2Go client: download it at https://wiki.x2go.org/doku.php/download:start
  4. File manager for SSH: https://cyberduck.io/
  5. RDP client: install official from Mac App Store https://apps.apple.com/us/app/microsoft-remote-desktop-10/id1295203466?mt=12

From Windows computer

VPN client installing

Navigate to https://vpn.vuw.ac.nz. Login with your university staff login and password and get Cisco AnyConnect Client. Download, install and run it. Connect to "vpn.vuw.ac.nz" and use your university staff credentials when prompted for login and password.

Windows essential tools

  1. SSH client: PuTTy https://www.putty.org/
  2. rsync client: https://itefix.net/cwrsync
  3. x2Go client: download it at https://wiki.x2go.org/doku.php/download:start
  4. File manager for SSH: WinSCP - https://winscp.net/eng/download.php, Cyberduck - https://cyberduck.io/

From mobile device

Haven't tested any yet

To university

To high performance cluster

After VPN connection established you may connect to any SGEES/ARC high performance clusters. You can see the list of our HPC's here: List of SGEES computing facilities

Using SSH for text mode access

Either run it from command line:

ssh username@sgees018.geo.vuw.ac.nz

Or use GUI tool: Cyberduck or WinSCP in MacOS and Windows, or "Go->Connect to Server" in MacOS

In Linux it varies:

Nautilus file manager has interface similar to MacOS ("Go->Connect to Server"),

whereas Dolphin has a direct support for SFTP, so the syntax would be: sftp://sgees018.geo.vuw.ac.nz/Volumes/

Using x2Go client for GUI

Start client and create a new connection, refer to List of SGEES computing facilities (assume you're connecting to tara.geo.vuw.ac.nz):

Session Name: some meaningful name, e.g. "Tara HPC"
Host: tara.geo.vuw.ac.nz
Login: <your Linux login>
SSH port: 22
Session type: XFCE

All (save the legacy sgees017) clusters have only XFCE desktop environment installed, so check if you've selected it properly.

On Input/Output tab force Set display DPI to "96" for overriding issues with modern high resolution displays (such as giant fonts or icons)

Start connection and login with your Linux credentials.

Using rsync

Several directories on sgees018 are shared via RSYNC. Connection is protected with password. if you need to transfer a lot of data to/from research storage ("/Volumes/...."), please ask Linux system administrator to create a personal share for you.

Rsync link to your directory will look like: rsync://doejohn@sgees018.geo.vuw.ac.nz/doejohn/

Connection test:

rsync -dt rsync://doejohn@sgees018.geo.vuw.ac.nz/doejohn/

Download file:

rsync -av --progress rsync://doejohn@sgees018.geo.vuw.ac.nz/doejohn/source/path/  /path/to/destination/

How to avoid of typing rsync password each time?

1. Create bash script:

#! /bin/bash
export RSYNC_PASSWORD=MY_RSYNC_PASSWORD
rsync -av --progress rsync://doejohn@sgees018.geo.vuw.ac.nz/doejohn/source/path/  /path/to/destination/


2. or save password in file (".ssh" directory in your home looks good enough for this)

echo 'MY_RSYNC_PASSWORD' > ~/.ssh/rsync_pass
rsync --password-file='~/.ssh/rsync_pass' -av --progress rsync://doejohn@sgees018.geo.vuw.ac.nz/doejohn/source/path/  /path/to/destination/

To Linux desktop

At first you need to know your computer name (hostname) to be able to connect it. Either write it down or remember. All SGEES desktops use the special naming convention in form: "building-room-pc", so your desktop name might look like co123pc03.geo.vuw.ac.nz

Please be aware - there is no way to power on your university computer remotely.

Most times you don't need to connect to you desktop for downloading or uploading any files. As we use network home profiles, all your documents stored there will be also accessible at any SGEES server (which is preferable way).

All Linux machines have SSH server running, however (for security reasons) access is open for system administrator only. If you believe you need to have remote access to your desktop (e.g. to run some very unique software installed only there), please ask Linux system administrator to add you to whitelist on the particular computer. Also there is an option to use x2Go for starting graphical session (after installing x2Goserver on the particular desktop)

To Windows desktop

For Windows ITS uses the different naming conventions: "school-service_tag.domain", so your Windows computer name should be similar to GEES-GFU468.staff.vuw.ac.nz

Start remote desktop (RDP) connection to the desktop and use your staff credentials. You might need to prepend your login with "staff\" (so your login will be: staff\username) to give RDP client information about your domain.

RDP client is included into all Windows as one of standard components, whereas for other O/S you need extra tool: Remmina for Linux and RDP client for MacOS

To your H: and M: drives

While keeping VPN active you may relatively easy get access to your university personal and shared files ("drives H: and M:"). Please be aware of network speed and connectivity: this case all your file operations will go over Internet connection so for large files it might be slow and unresponsive, also please check if it will not eat all your monthly Internet traffic (if you're not sitting on unlimited tariff)

Note the login name conventions. If there is no special entry for domain, use your user's name with "staff" prefix: staff\username

From Linux and MacOS

See here: Windows Shared Folders

From Windows

Run Windows Explorer and paste the following in address line:

For M: drive

  • \\stastocoiscifs1.staff.vuw.ac.nz\SCIFAC_SHARED\

For H: drive

  • \\stastocoiscifs1.staff.vuw.ac.nz\SCIFAC_HOME\your_windows_login

You can add add these addresses to your Explorer bookmarks ("Favourites") or map network folders, however should avoid of reconnecting them on each logon. Without VPN they might show unpredictable behaviour.