COMSOL through SSH tunnel

From Help-ME

Jump to: navigation, search

These instructions will allow comsol to be used within RESNET where VPN connections are blocked.

Download and configure Putty

  1. Go to http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html and click on "putty.exe" to download it.
  2. Save it to your desktop
  3. Double click on "putty.exe" on your desktop
  4. Under "Host Name (or IP address)" type "linux.engr.ucsb.edu" (without quotes.)
  5. Under "Saved Sessions" type a name for this session like "Engineering Linux Server" (without quotes.)
  6. Click "Save" button.
  7. Click the plus sign next to "SSH" in the menu on the left.
  8. Click "Tunnels" in the menu that expanded below.
  9. For "Source port" type "37054" (without quotes.)
  10. For "Destination" type license1.engr.ucsb.edu:37054 .
  11. Click the "Add" button.
  12. In the menu on the left, click "Session" near the top.
  13. Click the "Save" button again to save tunnel settings.

Image:Putty_1.png

Image:PuttySSHCOMSOL.png

Now you have to edit which license server your COMSOL installation is pointing to.
Go to the C:\COMSOL35a\license directory.
Right click the license.dat file and select Edit or Open With and select Notepad.

We'll now add a second server to the license file and comment out the one that is not in use.
Insert a new second line that reads SERVER localhost ANY 37054
Add a # before the line that reads SERVER license1.engr.ucsb.edu ANY 37054
Save the file


Now lauch Putty, load your saved connection settings and login to linux.engr.ucsb.edu.
Lauch COMSOL, a license should be retrieved and you should be able to work normally. With the edited license.dat file you'll be able to get a license from license1.engr.ucsb.edu.

When you are back on the campus network, you must switch which line of the license.dat file is commented out.

On campus the file should read:

# SN=XXXXXXX
#SERVER localhost ANY 37054
SERVER license1.engr.ucsb.edu ANY 37054
USE_SERVER


Off campus it will read:

# SN=XXXXXXX
SERVER localhost ANY 37054
#SERVER license1.engr.ucsb.edu ANY 37054
USE_SERVER
Personal tools