COMSOL through SSH tunnel

From Help-ME

Revision as of 23:07, 12 March 2010 by Sanash (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
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. i.e. mycomputer.mee.ucsb.edu:3389

  12. Click the "Add" button.
  13. In the menu on the left, click "Session" near the top.
  14. Click the "Save" button again to save tunnel settings.

Image:Putty_1.png

Image:Putty_2.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.
With the edited license.dat file you'll be able to get a license from license1.engr.ucsb.edu.

<bigger>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:
<smaller>

  1. SN=1008778
  2. SERVER localhost ANY 37054

SERVER license1.engr.ucsb.edu ANY 37054 USE_SERVER

Off campus it will read:

  1. SN=1008778

SERVER localhost ANY 37054

  1. SERVER license1.engr.ucsb.edu ANY 37054

USE_SERVER

Personal tools