Software licenses from outside the department

Operating Principle

The use of licensed software from within the DEI network requires the program, upon startup, to contact a license server to request authorization to use the software.
This server cannot be contacted from outside the DEI network unless a secure channel is created through which license requests can be forwarded.

The procedure therefore consists of two steps:

  1. establish a secure channel to the license server;
  2. configure the software to forward the license request through the secure channel.

 


 

Note for Matlab software only

Thanks to the Total Academic Headcount agreement with MathWorks, signed by ASIT (the University’s IT Services Area), users with an @unipd.it or @studenti.unipd.it account can obtain a personal license for Matlab and various toolboxes.
A personal license, installed alongside the DEI network license, allows you to use the software even when not connected to the network.
Follow the instructions at this link if you wish to obtain a personal license.

 


 

At the bottom, you will find instructions for using Matlab on the three main operating systems: Windows, macOS, and Linux.
The procedure for other licensed software is similar, provided that you change the connection ports accordingly.
To request the port numbers for other software, you need to contact the system administrators via email or by opening a ticket on the helpdesk.

  

Windows Procedure
First, you need to have an SSH client installed on your PC, which is a program that allows you to open a specific encrypted connection to the DEI login server. You can, for example, install Bitvise SSH Client or the simpler PuTTY, both of which are available among the attachments.

STEP 1: Creating the secure channel (SSH tunnel) to the license server
At this point, you can choose the configuration file for one of the mentioned SSH clients. In some cases, simply downloading the file and double-clicking it will automatically launch the associated program.

Enter your DEI credentials (username and password) when prompted.

For PuTTY, download and double-click the file below (answer “Yes” when asked whether to “Add the contained data...”), then start PuTTY: at this point, choose “matlab_tunnel” from the list of available sessions.

STEP 2: Adding the license file
To instruct the program to redirect license requests through the tunnel you just created, a specific file must be added to the "licenses" folder in the Matlab installation directory. The folder path looks something like:

C:\Program Files\MatlabVERSION\licenses

In this folder, there should already be a file named network.lic. Simply download the file provided below and save it in this folder.

STEP 3: Running the program
Activate the SSH tunnel as described in Step 1 (if you haven’t already), entering your username and password when prompted. You can now launch the program.

Once you are done using the program, you may close the SSH tunnel.

Download and rename the following file as matlab_putty.reg Download Putty settings

Download and rename the following file as local_win.lic Download Local license (Windows)

STEP 1: Creating the secure channel (SSH tunnel) to the license server
Launch the "Terminal" application from the "Applications" folder or by searching for it with Spotlight.

Type the following command in the terminal (ALL ON ONE LINE), replacing MY_LOGIN with your DEI username:

ssh login.dei.unipd.it -L 1890:bella.dei.unipd.it:1890 -L 1891:bella.dei.unipd.it:1891 -l MY_LOGIN

Press Enter and enter your password when prompted.


STEP 2: Adding the license file
To instruct the program to redirect license requests through the tunnel just created, a specific file must be added to the "licenses" folder within the Matlab installation. To access this folder using Finder, follow these steps:

  • Locate the Matlab icon in the "Applications" folder
  • Press CTRL+click to open the context menu and choose "Show Package Contents" to access the Matlab installation directory
  • Open the licenses folder

This folder should already contain the file network.lic. Simply download the file provided below and save it into this folder.

IMPORTANT NOTE: macOS may (on its own…) add the extension “.txt” to the file after downloading it. If this happens, the procedure will not work (the file would be named local_unix.lic.txt). Make sure the file keeps the .lic extension after downloading!


Running the program
Activate the SSH tunnel as described in STEP 1 (if you haven’t already). At this point, you can launch the program.
Once you're done using the program, you can close the SSH tunnel by closing the Terminal.

Download and rename the following file as local_mac_linux.lic Download Local License (Mac Linux)

STEP 1: Creating the secure channel (SSH tunnel) to the license server
Note: The SSH client is usually pre-installed on all modern Linux distributions. If it is not, you can install it using the method provided by your distribution. For example: 

sudo apt-get install openssh-client

on Debian-based distributions like Ubuntu. Or on Fedora-based systems:

sudo dnf install openssh

Since it is not enabled by default, it is necessary to configure the keepalive function for the SSH connection to login.dei.unipd.it to prevent it from being closed due to low traffic. A convenient way to do this is by adding a few lines to the "config" file located in the ".ssh" folder in your home directory. If the file does not exist, you can create it:

Host login.dei.unipd.it 
TCPKeepAlive yes 
ServerAliveInterval 60

The necessary lines ensure that the connection stays alive by sending periodic messages.

Once this is done, open a terminal and type the SSH connection command in one line, replacing "MY_LOGIN" with your DEI username:

ssh login.dei.unipd.it -L 1890:bella.dei.unipd.it:1890 -L 1891:bella.dei.unipd.it:1891 -l MY_LOGIN

Press Enter and enter your password when prompted.


STEP 2: Adding the license file
To configure the program to redirect license requests through the tunnel created in step 1, you need to add a specific file in the "licenses" folder of the Matlab installation. The path of this folder is typically something like /usr/local/MATLAB/VERSION/licenses.

This folder should already contain the file called "network.lic". You just need to download the provided file and save it in this folder.


Running the program
Activate the SSH tunnel as described in step 1 (if you have not already done so). At this point, you can launch the program.
Once you are finished using the program, you can close the SSH tunnel by closing the terminal.

Download and rename the following file as local_mac_linux.lic Download Local License (Mac Linux)

Intended for: permanent DEI staff
Description: this section outlines the procedures for using licensed software (e.g., Matlab) when connected outside the DEI network, for example from home.
Contact: IT Services