Difference: SshTunnel (1 vs. 15)

Revision 1509 Apr 2015 - Main.DavidStokes

 
META TOPICPARENT name="CemITSystem"

How to tunnel port through SSH (e.g. for using VNC remotely)

Why?

If you are at another institution or at home and wish to use/monitor NYSBC computer like the cluster or automated EM operation.

VNC server

start the vnc server on the remote computer

  • "old" cluster (16 nodes x 4 cores) 192.168.5.236
  • "new" cluster (32 nodes x 12 cores) 192.168.5.231
  • JEOL3200 computer running SerialEM
  • JEOL1230 computer running leginon
  • Robot computer running iRobot 192.168.5.172
  • Helios Support PC: 192.168.5.183

Linux
  • the Linux server will create a "virtual" Desktop that will only be seen by vnc clients
  • vnc should be installed by default on most linux systems
    vncserver -geometry 1280x1024 :10
  • geometry determines the size of the virtual desktop that will be created
  • :10 determine the port that will be used (5900 + the number you enter - in this case 5910)
  • First time you run, you will be prompted to enter a password. You will need to remember this later when you open the connection with a vnc viewer
  • you can select a different window manager by editing the file .vnc/xstartup
    • icewm is a nice one. twm is annoying but uses minimal resources. kde is a memory hog, don't use it
    • to use icewm, comment out the line "twm &" by adding a # at the start
    • add the line "/usr/apps/icewm/bin/icewm &"

Windows
  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"

ssh into nysbc from remote site

  • NYSBC Portal address: portal.nysbc.org
Windows
  • download and use Putty
  • in configuration page, edit the SSH->Tunnels
    • "Source port" = 5910
    • "Destination" = 192.168.5.236:5910 (where 192.168.5.236 is the cluster computer in this example, but could be 192.168.5.172 for the robot computer or local IP address of whatever computer you wish to connect to))
      • seems that you need to use the IP address of the "Destination" computer, cannot use common alias, like agamemnon or athena
    • click "Add" and you should see - L5910 192.168.5.236:5910 - appear in the box
  • in configuration page "Session" tab
    • enter portal.nysbc.org (207.239.59.21), this is the NYSBC portal computer that will forward the port
      • you must have login privileges on this machine
  • It is recommended that you name and save this session so you don't have to enter this next time
  • Click "Open" to establish ssh connection (login)
Linux
  • from command line type
        ssh -L 5910:192.168.5.236:5910 portal.nysbc.org
-or-
        ssh -L 5910:192.168.5.236:5910 207.239.59.21  
  • 192.168.5.236 is the IP address of the cluster, replace with IP address of desired computer

Run VNCVIEWER from remote site

Windows
  • "VNC server" = localhost:10
  • or "VNC server" = 127.0.0.1:10
    • you are pretending that the vncserver is running on you local machine on port 5910, but ssh is instead tunneling this port to the remote machine as setup above
+++Linux
  • In another shell (NOT the one where you are logged in to the remote computer) type:
       vncviewer :10
  • you better make sure that you do not have vncserver running on port 5910 of your local machine!

Web server

  • In order to access NYSBC internal websites (leginon dataserver, robot cameras, etc) on a remote machine, need to forward web port 80
  • example: to browse athena (leginon server):

Establish ssh tunnel (to athena in this example)

Windows - download and use Putty
  • in configuration page, edit the SSH->Tunnels
    • "Source port" = 8080
    • "Destination" = 192.168.5.233:80 (this is IP address of athena: the Leginon Server)
      • have to explicitly use IP address of athena, alias does not get translated by ssh
    • click "Add" and you should see - L8080 192.168.5.233:80 - appear in the box
  • in configuration page "Session" tab
    • enter portal.nysbc.org (IP address of the portal computer is 207.239.59.21)
      • you must have login privileges on this machine
  • It is recommended that you name and save this session so you don't have to enter this next time
  • Click "Open" to establish ssh connection (login)

Linux
  • from command line type
   ssh -L 8080:192.168.5.233:80 username@207.239.59.21
- or -
   ssh -L 8080:192.168.5.233:80 username@portal.nysbc.org
  • Above command forwards athena port 80 data to the remote machine's port 8080
  • have to use explicit IP address for athena on command line
Changed:
<
<

open browser on local machine and connect to remote server (Windows or Linux)

>
>

open browser on local machine and connect to leginon server (Windows or Linux)

 

example 2: to view robot cameras:

   ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@portal.nysbc.org
-or-
   ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@207.239.59.21

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 21 Apr 2010

Added:
>
>

Revision 1404 Nov 2014 - Main.BillRice

 
META TOPICPARENT name="CemITSystem"

How to tunnel port through SSH (e.g. for using VNC remotely)

Why?

If you are at another institution or at home and wish to use/monitor NYSBC computer like the cluster or automated EM operation.

VNC server

start the vnc server on the remote computer

  • "old" cluster (16 nodes x 4 cores) 192.168.5.236
  • "new" cluster (32 nodes x 12 cores) 192.168.5.231
  • JEOL3200 computer running SerialEM
  • JEOL1230 computer running leginon
  • Robot computer running iRobot 192.168.5.172
  • Helios Support PC: 192.168.5.183

Linux
  • the Linux server will create a "virtual" Desktop that will only be seen by vnc clients
  • vnc should be installed by default on most linux systems
    vncserver -geometry 1280x1024 :10
  • geometry determines the size of the virtual desktop that will be created
  • :10 determine the port that will be used (5900 + the number you enter - in this case 5910)
  • First time you run, you will be prompted to enter a password. You will need to remember this later when you open the connection with a vnc viewer
  • you can select a different window manager by editing the file .vnc/xstartup
    • icewm is a nice one. twm is annoying but uses minimal resources. kde is a memory hog, don't use it
    • to use icewm, comment out the line "twm &" by adding a # at the start
    • add the line "/usr/apps/icewm/bin/icewm &"

Windows
  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"

ssh into nysbc from remote site

Changed:
<
<
  • NYSBC Portal address: 207.239.59.21
>
>
  • NYSBC Portal address: portal.nysbc.org
 
Windows
  • download and use Putty
  • in configuration page, edit the SSH->Tunnels
    • "Source port" = 5910
    • "Destination" = 192.168.5.236:5910 (where 192.168.5.236 is the cluster computer in this example, but could be 192.168.5.172 for the robot computer or local IP address of whatever computer you wish to connect to))
      • seems that you need to use the IP address of the "Destination" computer, cannot use common alias, like agamemnon or athena
    • click "Add" and you should see - L5910 192.168.5.236:5910 - appear in the box
  • in configuration page "Session" tab
    • enter portal.nysbc.org (207.239.59.21), this is the NYSBC portal computer that will forward the port
      • you must have login privileges on this machine
  • It is recommended that you name and save this session so you don't have to enter this next time
  • Click "Open" to establish ssh connection (login)
Linux
  • from command line type
        ssh -L 5910:192.168.5.236:5910 portal.nysbc.org
-or-
        ssh -L 5910:192.168.5.236:5910 207.239.59.21  
  • 192.168.5.236 is the IP address of the cluster, replace with IP address of desired computer

Run VNCVIEWER from remote site

Windows
  • "VNC server" = localhost:10
  • or "VNC server" = 127.0.0.1:10
    • you are pretending that the vncserver is running on you local machine on port 5910, but ssh is instead tunneling this port to the remote machine as setup above
+++Linux
  • In another shell (NOT the one where you are logged in to the remote computer) type:
       vncviewer :10
  • you better make sure that you do not have vncserver running on port 5910 of your local machine!

Web server

  • In order to access NYSBC internal websites (leginon dataserver, robot cameras, etc) on a remote machine, need to forward web port 80
  • example: to browse athena (leginon server):

Establish ssh tunnel (to athena in this example)

Windows - download and use Putty
  • in configuration page, edit the SSH->Tunnels
    • "Source port" = 8080
    • "Destination" = 192.168.5.233:80 (this is IP address of athena: the Leginon Server)
      • have to explicitly use IP address of athena, alias does not get translated by ssh
    • click "Add" and you should see - L8080 192.168.5.233:80 - appear in the box
  • in configuration page "Session" tab
    • enter portal.nysbc.org (IP address of the portal computer is 207.239.59.21)
      • you must have login privileges on this machine
  • It is recommended that you name and save this session so you don't have to enter this next time
  • Click "Open" to establish ssh connection (login)

Linux
  • from command line type
   ssh -L 8080:192.168.5.233:80 username@207.239.59.21
- or -
   ssh -L 8080:192.168.5.233:80 username@portal.nysbc.org
  • Above command forwards athena port 80 data to the remote machine's port 8080
  • have to use explicit IP address for athena on command line

open browser on local machine and connect to remote server (Windows or Linux)

example 2: to view robot cameras:

   ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@portal.nysbc.org
-or-
   ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@207.239.59.21

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 21 Apr 2010

Revision 1320 Oct 2014 - Main.BillRice

 
META TOPICPARENT name="CemITSystem"

How to tunnel port through SSH (e.g. for using VNC remotely)

Why?

If you are at another institution or at home and wish to use/monitor NYSBC computer like the cluster or automated EM operation.

VNC server

start the vnc server on the remote computer

  • "old" cluster (16 nodes x 4 cores) 192.168.5.236
  • "new" cluster (32 nodes x 12 cores) 192.168.5.231
  • JEOL3200 computer running SerialEM
  • JEOL1230 computer running leginon
  • Robot computer running iRobot 192.168.5.172
Added:
>
>
  • Helios Support PC: 192.168.5.183
 
Linux
  • the Linux server will create a "virtual" Desktop that will only be seen by vnc clients
  • vnc should be installed by default on most linux systems
    vncserver -geometry 1280x1024 :10
  • geometry determines the size of the virtual desktop that will be created
  • :10 determine the port that will be used (5900 + the number you enter - in this case 5910)
  • First time you run, you will be prompted to enter a password. You will need to remember this later when you open the connection with a vnc viewer
  • you can select a different window manager by editing the file .vnc/xstartup
    • icewm is a nice one. twm is annoying but uses minimal resources. kde is a memory hog, don't use it
    • to use icewm, comment out the line "twm &" by adding a # at the start
    • add the line "/usr/apps/icewm/bin/icewm &"

Windows
  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"

ssh into nysbc from remote site

  • NYSBC Portal address: 207.239.59.21
Windows
  • download and use Putty
  • in configuration page, edit the SSH->Tunnels
    • "Source port" = 5910
    • "Destination" = 192.168.5.236:5910 (where 192.168.5.236 is the cluster computer in this example, but could be 192.168.5.172 for the robot computer or local IP address of whatever computer you wish to connect to))
      • seems that you need to use the IP address of the "Destination" computer, cannot use common alias, like agamemnon or athena
    • click "Add" and you should see - L5910 192.168.5.236:5910 - appear in the box
  • in configuration page "Session" tab
    • enter portal.nysbc.org (207.239.59.21), this is the NYSBC portal computer that will forward the port
      • you must have login privileges on this machine
  • It is recommended that you name and save this session so you don't have to enter this next time
  • Click "Open" to establish ssh connection (login)
Linux
  • from command line type
        ssh -L 5910:192.168.5.236:5910 portal.nysbc.org
-or-
        ssh -L 5910:192.168.5.236:5910 207.239.59.21  
  • 192.168.5.236 is the IP address of the cluster, replace with IP address of desired computer

Run VNCVIEWER from remote site

Windows
  • "VNC server" = localhost:10
  • or "VNC server" = 127.0.0.1:10
    • you are pretending that the vncserver is running on you local machine on port 5910, but ssh is instead tunneling this port to the remote machine as setup above
+++Linux
  • In another shell (NOT the one where you are logged in to the remote computer) type:
       vncviewer :10
  • you better make sure that you do not have vncserver running on port 5910 of your local machine!

Web server

  • In order to access NYSBC internal websites (leginon dataserver, robot cameras, etc) on a remote machine, need to forward web port 80
  • example: to browse athena (leginon server):

Establish ssh tunnel (to athena in this example)

Windows - download and use Putty
  • in configuration page, edit the SSH->Tunnels
    • "Source port" = 8080
    • "Destination" = 192.168.5.233:80 (this is IP address of athena: the Leginon Server)
      • have to explicitly use IP address of athena, alias does not get translated by ssh
    • click "Add" and you should see - L8080 192.168.5.233:80 - appear in the box
  • in configuration page "Session" tab
    • enter portal.nysbc.org (IP address of the portal computer is 207.239.59.21)
      • you must have login privileges on this machine
  • It is recommended that you name and save this session so you don't have to enter this next time
  • Click "Open" to establish ssh connection (login)

Linux
  • from command line type
   ssh -L 8080:192.168.5.233:80 username@207.239.59.21
- or -
   ssh -L 8080:192.168.5.233:80 username@portal.nysbc.org
  • Above command forwards athena port 80 data to the remote machine's port 8080
  • have to use explicit IP address for athena on command line

open browser on local machine and connect to remote server (Windows or Linux)

example 2: to view robot cameras:

   ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@portal.nysbc.org
-or-
   ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@207.239.59.21

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 21 Apr 2010

Deleted:
<
<

Revision 1214 Aug 2014 - Main.BillRice

 
META TOPICPARENT name="CemITSystem"

How to tunnel port through SSH (e.g. for using VNC remotely)

Why?

If you are at another institution or at home and wish to use/monitor NYSBC computer like the cluster or automated EM operation.

VNC server

start the vnc server on the remote computer

Changed:
<
<
  • cluster 192.168.5.236
>
>
  • "old" cluster (16 nodes x 4 cores) 192.168.5.236
Added:
>
>
  • "new" cluster (32 nodes x 12 cores) 192.168.5.231
 
  • JEOL3200 computer running SerialEM
  • JEOL1230 computer running leginon
  • Robot computer running iRobot 192.168.5.172

Linux
  • the Linux server will create a "virtual" Desktop that will only be seen by vnc clients
  • vnc should be installed by default on most linux systems
    vncserver -geometry 1280x1024 :10
  • geometry determines the size of the virtual desktop that will be created
  • :10 determine the port that will be used (5900 + the number you enter - in this case 5910)
  • First time you run, you will be prompted to enter a password. You will need to remember this later when you open the connection with a vnc viewer
  • you can select a different window manager by editing the file .vnc/xstartup
    • icewm is a nice one. twm is annoying but uses minimal resources. kde is a memory hog, don't use it
    • to use icewm, comment out the line "twm &" by adding a # at the start
    • add the line "/usr/apps/icewm/bin/icewm &"

Windows
  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"

ssh into nysbc from remote site

Added:
>
>
  • NYSBC Portal address: 207.239.59.21
 
Windows
  • download and use Putty
  • in configuration page, edit the SSH->Tunnels
    • "Source port" = 5910
    • "Destination" = 192.168.5.236:5910 (where 192.168.5.236 is the cluster computer in this example, but could be 192.168.5.172 for the robot computer or local IP address of whatever computer you wish to connect to))
      • seems that you need to use the IP address of the "Destination" computer, cannot use common alias, like agamemnon or athena
    • click "Add" and you should see - L5910 192.168.5.236:5910 - appear in the box
  • in configuration page "Session" tab
    • enter portal.nysbc.org (207.239.59.21), this is the NYSBC portal computer that will forward the port
      • you must have login privileges on this machine
  • It is recommended that you name and save this session so you don't have to enter this next time
  • Click "Open" to establish ssh connection (login)
Linux
  • from command line type
        ssh -L 5910:192.168.5.236:5910 portal.nysbc.org
-or-
        ssh -L 5910:192.168.5.236:5910 207.239.59.21  
  • 192.168.5.236 is the IP address of the cluster, replace with IP address of desired computer

Run VNCVIEWER from remote site

Windows
  • "VNC server" = localhost:10
  • or "VNC server" = 127.0.0.1:10
    • you are pretending that the vncserver is running on you local machine on port 5910, but ssh is instead tunneling this port to the remote machine as setup above
+++Linux
  • In another shell (NOT the one where you are logged in to the remote computer) type:
       vncviewer :10
  • you better make sure that you do not have vncserver running on port 5910 of your local machine!

Web server

  • In order to access NYSBC internal websites (leginon dataserver, robot cameras, etc) on a remote machine, need to forward web port 80
  • example: to browse athena (leginon server):

Establish ssh tunnel (to athena in this example)

Windows - download and use Putty
  • in configuration page, edit the SSH->Tunnels
    • "Source port" = 8080
    • "Destination" = 192.168.5.233:80 (this is IP address of athena: the Leginon Server)
      • have to explicitly use IP address of athena, alias does not get translated by ssh
    • click "Add" and you should see - L8080 192.168.5.233:80 - appear in the box
  • in configuration page "Session" tab
    • enter portal.nysbc.org (IP address of the portal computer is 207.239.59.21)
      • you must have login privileges on this machine
  • It is recommended that you name and save this session so you don't have to enter this next time
  • Click "Open" to establish ssh connection (login)

Linux
  • from command line type
   ssh -L 8080:192.168.5.233:80 username@207.239.59.21
- or -
   ssh -L 8080:192.168.5.233:80 username@portal.nysbc.org
  • Above command forwards athena port 80 data to the remote machine's port 8080
  • have to use explicit IP address for athena on command line

open browser on local machine and connect to remote server (Windows or Linux)

example 2: to view robot cameras:

   ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@portal.nysbc.org
-or-
   ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@207.239.59.21

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 21 Apr 2010

Revision 1131 Aug 2012 - Main.DavidStokes

 
META TOPICPARENT name="CemITSystem"

How to tunnel port through SSH (e.g. for using VNC remotely)

Why?

If you are at another institution or at home and wish to use/monitor NYSBC computer like the cluster or automated EM operation.

VNC server

start the vnc server on the remote computer

  • cluster 192.168.5.236
  • JEOL3200 computer running SerialEM
  • JEOL1230 computer running leginon
  • Robot computer running iRobot 192.168.5.172

Linux
  • the Linux server will create a "virtual" Desktop that will only be seen by vnc clients
  • vnc should be installed by default on most linux systems
    vncserver -geometry 1280x1024 :10
  • geometry determines the size of the virtual desktop that will be created
  • :10 determine the port that will be used (5900 + the number you enter - in this case 5910)
  • First time you run, you will be prompted to enter a password. You will need to remember this later when you open the connection with a vnc viewer
  • you can select a different window manager by editing the file .vnc/xstartup
    • icewm is a nice one. twm is annoying but uses minimal resources. kde is a memory hog, don't use it
    • to use icewm, comment out the line "twm &" by adding a # at the start
    • add the line "/usr/apps/icewm/bin/icewm &"

Windows
  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"

ssh into nysbc from remote site

Windows
  • download and use Putty
  • in configuration page, edit the SSH->Tunnels
    • "Source port" = 5910
Changed:
<
<
    • "Destination" = 192.168.5.236:5910 (where 192.168.5.236 is the cluster computer in this example, but could be 192.168.5.172 for the robot computer or whatever computer you wish to connect to))
>
>
    • "Destination" = 192.168.5.236:5910 (where 192.168.5.236 is the cluster computer in this example, but could be 192.168.5.172 for the robot computer or local IP address of whatever computer you wish to connect to))
Added:
>
>
      • seems that you need to use the IP address of the "Destination" computer, cannot use common alias, like agamemnon or athena
 
    • click "Add" and you should see - L5910 192.168.5.236:5910 - appear in the box
  • in configuration page "Session" tab
Changed:
<
<
    • enter 207.239.59.21 (external address of the NYSBC portal computer) or sftp.nysbc.org (address of sftp server)
>
>
    • enter portal.nysbc.org (207.239.59.21), this is the NYSBC portal computer that will forward the port
 
      • you must have login privileges on this machine
  • It is recommended that you name and save this session so you don't have to enter this next time
  • Click "Open" to establish ssh connection (login)
Linux
  • from command line type
Changed:
<
<
ssh -L 5910:192.168.5.236:5910 207.239.59.21
>
>
ssh -L 5910:192.168.5.236:5910 portal.nysbc.org
Added:
>
>
-or- ssh -L 5910:192.168.5.236:5910 207.239.59.21
 
  • 192.168.5.236 is the IP address of the cluster, replace with IP address of desired computer

Run VNCVIEWER from remote site

Windows
  • "VNC server" = localhost:10
  • or "VNC server" = 127.0.0.1:10
Changed:
<
<
  • 127.0.0.1 refers to the remote site host, but then the port 5910 is tunneled through ssh connection
Linux
>
>
    • you are pretending that the vncserver is running on you local machine on port 5910, but ssh is instead tunneling this port to the remote machine as setup above
+++Linux
 
  • In another shell (NOT the one where you are logged in to the remote computer) type:
       vncviewer :10
Changed:
<
<
  • this assumes localhost - you better not have vncserver running on port 10 of your localhost!
>
>
  • you better make sure that you do not have vncserver running on port 5910 of your local machine!
 

Web server

  • In order to access NYSBC internal websites (leginon dataserver, robot cameras, etc) on a remote machine, need to forward web port 80
Changed:
<
<
  • example: to browse cem100 (leginon server):
>
>
  • example: to browse athena (leginon server):
 
Changed:
<
<

Establish ssh tunnel (to cem100 in this example)

>
>

Establish ssh tunnel (to athena in this example)

 
Windows - download and use Putty
  • in configuration page, edit the SSH->Tunnels
    • "Source port" = 8080
Changed:
<
<
    • "Destination" = cem100:80 (where cem100 is Leginon Server)
    • click "Add" and you should see - L8080 cem100:80 - appear in the box
>
>
    • "Destination" = 192.168.5.233:80 (this is IP address of athena: the Leginon Server)
      • have to explicitly use IP address of athena, alias does not get translated by ssh
Added:
>
>
    • click "Add" and you should see - L8080 192.168.5.233:80 - appear in the box
 
  • in configuration page "Session" tab
    • enter portal.nysbc.org (IP address of the portal computer is 207.239.59.21)
      • you must have login privileges on this machine
  • It is recommended that you name and save this session so you don't have to enter this next time
  • Click "Open" to establish ssh connection (login)

Linux
  • from command line type
Changed:
<
<
ssh -L 8080:cem100:80 username@207.239.59.21
>
>
ssh -L 8080:192.168.5.233:80 username@207.239.59.21
 - or -
Changed:
<
<
ssh -L 8080:cem100:80 username@portal.nysbc.org
>
>
ssh -L 8080:192.168.5.233:80 username@portal.nysbc.org
 
Changed:
<
<
  • Above command forwards cem100 port 80 data to the remote machine's port 8080
>
>
  • Above command forwards athena port 80 data to the remote machine's port 8080
Added:
>
>
  • have to use explicit IP address for athena on command line
 

open browser on local machine and connect to remote server (Windows or Linux)

example 2: to view robot cameras:

Deleted:
<
<
ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@207.239.59.21
  ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@portal.nysbc.org
Added:
>
>
-or- ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@207.239.59.21
 

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 21 Apr 2010

Revision 1028 Aug 2012 - Main.DavidStokes

 
META TOPICPARENT name="CemITSystem"
Changed:
<
<

How to tunnel port through SSH (e.g. for using VNC remotely)

>
>

How to tunnel port through SSH (e.g. for using VNC remotely)

 
Added:
>
>
 

Why?

Changed:
<
<
If you are at another institution or at home and wish to use NYSBC computer facilities like the cluster or automated EM operation.
>
>
If you are at another institution or at home and wish to use/monitor NYSBC computer like the cluster or automated EM operation.
 
Changed:
<
<

VNC

you must start the vnc server on the computer that you wish to view remotely

  • cluster
>
>

VNC server

start the vnc server on the remote computer

Added:
>
>
  • cluster 192.168.5.236
 
  • JEOL3200 computer running SerialEM
  • JEOL1230 computer running leginon
Changed:
<
<
  • Robot computer running iRobot
>
>
  • Robot computer running iRobot 192.168.5.172
 
Changed:
<
<

connecting to cluster

>
>
Linux
Deleted:
<
<

start vncserver on Linux

 
  • the Linux server will create a "virtual" Desktop that will only be seen by vnc clients
  • vnc should be installed by default on most linux systems
    vncserver -geometry 1280x1024 :10
  • geometry determines the size of the virtual desktop that will be created
  • :10 determine the port that will be used (5900 + the number you enter - in this case 5910)
  • First time you run, you will be prompted to enter a password. You will need to remember this later when you open the connection with a vnc viewer
  • you can select a different window manager by editing the file .vnc/xstartup
    • icewm is a nice one. twm is annoying but uses minimal resources. kde is a memory hog, don't use it
    • to use icewm, comment out the line "twm &" by adding a # at the start
    • add the line "/usr/apps/icewm/bin/icewm &"
Added:
>
>
Windows
  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"
 

ssh into nysbc from remote site

Changed:
<
<
  • Windows - download and use Putty
    • in configuration page, edit the SSH->Tunnels
      • "Source port" = 5910
      • "Destination" = 192.168.5.236:5910 (where 192.168.5.236 is the cluster computer in this example)
      • click "Add" and you should see - L5910 192.168.5.236:5910 - appear in the box
    • in configuration page "Session" tab
      • enter 207.239.59.21 (external address of the NYSBC portal computer) or sftp.nysbc.org (address of sftp server)
        • you must have login privileges on this machine
    • It is recommended that you name and save this session so you don't have to enter this next time
    • Click "Open" to establish ssh connection (login)
  • Linux
    • from command line type
>
>
Windows
  • download and use Putty
  • in configuration page, edit the SSH->Tunnels
    • "Source port" = 5910
    • "Destination" = 192.168.5.236:5910 (where 192.168.5.236 is the cluster computer in this example, but could be 192.168.5.172 for the robot computer or whatever computer you wish to connect to))
    • click "Add" and you should see - L5910 192.168.5.236:5910 - appear in the box
  • in configuration page "Session" tab
    • enter 207.239.59.21 (external address of the NYSBC portal computer) or sftp.nysbc.org (address of sftp server)
      • you must have login privileges on this machine
  • It is recommended that you name and save this session so you don't have to enter this next time
  • Click "Open" to establish ssh connection (login)
Linux
Added:
>
>
  • from command line type
 
        ssh -L 5910:192.168.5.236:5910 207.239.59.21   
  • 192.168.5.236 is the IP address of the cluster, replace with IP address of desired computer
Added:
>
>
 

Run VNCVIEWER from remote site

Changed:
<
<
  • Windows
    • "VNC server" = localhost:10
    • or "VNC server" = 127.0.0.1:10
    • 127.0.0.1 refers to the remote site host, but then the port 5910 is tunneled through ssh connection
  • Linux
    • In another shell (NOT the one where you are logged in to the remote computer) type:
>
>
Windows
  • "VNC server" = localhost:10
  • or "VNC server" = 127.0.0.1:10
  • 127.0.0.1 refers to the remote site host, but then the port 5910 is tunneled through ssh connection
Linux
  • In another shell (NOT the one where you are logged in to the remote computer) type:
 
       vncviewer :10
Changed:
<
<
    • this assumes localhost - you better not have vncserver running on port 10 of your localhost!
>
>
  • this assumes localhost - you better not have vncserver running on port 10 of your localhost!
 
Changed:
<
<

Robot computer

  • IP address of robot computer is 192.168.5.172
>
>

Web server

Deleted:
<
<
  • Therefore, follow above instructions for cluster, but replace 192.168.5.236 with 192.168.5.172

Web

 
  • In order to access NYSBC internal websites (leginon dataserver, robot cameras, etc) on a remote machine, need to forward web port 80
  • example: to browse cem100 (leginon server):
Added:
>
>

Establish ssh tunnel (to cem100 in this example)

Windows - download and use Putty
  • in configuration page, edit the SSH->Tunnels
    • "Source port" = 8080
    • "Destination" = cem100:80 (where cem100 is Leginon Server)
    • click "Add" and you should see - L8080 cem100:80 - appear in the box
  • in configuration page "Session" tab
    • enter portal.nysbc.org (IP address of the portal computer is 207.239.59.21)
      • you must have login privileges on this machine
  • It is recommended that you name and save this session so you don't have to enter this next time
  • Click "Open" to establish ssh connection (login)

Linux
  • from command line type
 
   ssh -L 8080:cem100:80 username@207.239.59.21
Added:
>
>
- or - ssh -L 8080:cem100:80 username@portal.nysbc.org
 
  • Above command forwards cem100 port 80 data to the remote machine's port 8080
Changed:
<
<
  • Now, to browse, open a browser on the local machine and go to http://localhost:8080
  • example 2: to view robot cameras:
>
>

open browser on local machine and connect to remote server (Windows or Linux)

Added:
>
>

example 2: to view robot cameras:

 
   ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@207.239.59.21
Added:
>
>
ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@portal.nysbc.org
 
Deleted:
<
<

Sharing a Windows computer externally

start vncserver on Windows

  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"
 

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 21 Apr 2010

Added:
>
>

Revision 912 Nov 2010 - Main.BillRice

 
META TOPICPARENT name="CemITSystem"

How to tunnel port through SSH (e.g. for using VNC remotely)

Why?

If you are at another institution or at home and wish to use NYSBC computer facilities like the cluster or automated EM operation.

VNC

you must start the vnc server on the computer that you wish to view remotely

  • cluster
  • JEOL3200 computer running SerialEM
  • JEOL1230 computer running leginon
  • Robot computer running iRobot

connecting to cluster

start vncserver on Linux

  • the Linux server will create a "virtual" Desktop that will only be seen by vnc clients
  • vnc should be installed by default on most linux systems
Changed:
<
<
  • vncserver -geometry 1280x1024 :10
>
>
Added:
>
>
vncserver -geometry 1280x1024 :10
 
  • geometry determines the size of the virtual desktop that will be created
  • :10 determine the port that will be used (5900 + the number you enter - in this case 5910)
Added:
>
>
  • First time you run, you will be prompted to enter a password. You will need to remember this later when you open the connection with a vnc viewer
 
  • you can select a different window manager by editing the file .vnc/xstartup
    • icewm is a nice one. twm is annoying but uses minimal resources. kde is a memory hog, don't use it
    • to use icewm, comment out the line "twm &" by adding a # at the start
    • add the line "/usr/apps/icewm/bin/icewm &"

ssh into nysbc from remote site

  • Windows - download and use Putty
    • in configuration page, edit the SSH->Tunnels
      • "Source port" = 5910
      • "Destination" = 192.168.5.236:5910 (where 192.168.5.236 is the cluster computer in this example)
      • click "Add" and you should see - L5910 192.168.5.236:5910 - appear in the box
    • in configuration page "Session" tab
      • enter 207.239.59.21 (external address of the NYSBC portal computer) or sftp.nysbc.org (address of sftp server)
        • you must have login privileges on this machine
    • It is recommended that you name and save this session so you don't have to enter this next time
    • Click "Open" to establish ssh connection (login)
  • Linux
    • from command line type
        ssh -L 5910:192.168.5.236:5910 207.239.59.21   
  • 192.168.5.236 is the IP address of the cluster, replace with IP address of desired computer

Run VNCVIEWER from remote site

  • Windows
    • "VNC server" = localhost:10
    • or "VNC server" = 127.0.0.1:10
    • 127.0.0.1 refers to the remote site host, but then the port 5910 is tunneled through ssh connection
  • Linux
    • In another shell (NOT the one where you are logged in to the remote computer) type:
       vncviewer :10
    • this assumes localhost - you better not have vncserver running on port 10 of your localhost!

Robot computer

  • IP address of robot computer is 192.168.5.172
  • Therefore, follow above instructions for cluster, but replace 192.168.5.236 with 192.168.5.172

Web

  • In order to access NYSBC internal websites (leginon dataserver, robot cameras, etc) on a remote machine, need to forward web port 80
  • example: to browse cem100 (leginon server):
   ssh -L 8080:cem100:80 username@207.239.59.21
  • Above command forwards cem100 port 80 data to the remote machine's port 8080
  • Now, to browse, open a browser on the local machine and go to http://localhost:8080
  • example 2: to view robot cameras:
   ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@207.239.59.21

Sharing a Windows computer externally

start vncserver on Windows

  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 21 Apr 2010

Revision 812 Nov 2010 - Main.BillRice

 
META TOPICPARENT name="CemITSystem"

How to tunnel port through SSH (e.g. for using VNC remotely)

Why?

If you are at another institution or at home and wish to use NYSBC computer facilities like the cluster or automated EM operation.

VNC

you must start the vnc server on the computer that you wish to view remotely

  • cluster
  • JEOL3200 computer running SerialEM
  • JEOL1230 computer running leginon
  • Robot computer running iRobot

connecting to cluster

start vncserver on Linux

  • the Linux server will create a "virtual" Desktop that will only be seen by vnc clients
  • vnc should be installed by default on most linux systems
  • vncserver -geometry 1280x1024 :10
  • geometry determines the size of the virtual desktop that will be created
  • :10 determine the port that will be used (5900 + the number you enter - in this case 5910)
  • you can select a different window manager by editing the file .vnc/xstartup
    • icewm is a nice one. twm is annoying but uses minimal resources. kde is a memory hog, don't use it
    • to use icewm, comment out the line "twm &" by adding a # at the start
    • add the line "/usr/apps/icewm/bin/icewm &"

ssh into nysbc from remote site

  • Windows - download and use Putty
    • in configuration page, edit the SSH->Tunnels
      • "Source port" = 5910
      • "Destination" = 192.168.5.236:5910 (where 192.168.5.236 is the cluster computer in this example)
      • click "Add" and you should see - L5910 192.168.5.236:5910 - appear in the box
    • in configuration page "Session" tab
      • enter 207.239.59.21 (external address of the NYSBC portal computer) or sftp.nysbc.org (address of sftp server)
        • you must have login privileges on this machine
    • It is recommended that you name and save this session so you don't have to enter this next time
    • Click "Open" to establish ssh connection (login)
  • Linux
    • from command line type
Changed:
<
<
      • ssh -L 5910:192.168.5.236:5910 207.239.59.21 (192.168.5.236 is the IP address of the cluster, replace with IP address of desired computer)
>
>
Added:
>
>
ssh -L 5910:192.168.5.236:5910 207.239.59.21
  • 192.168.5.236 is the IP address of the cluster, replace with IP address of desired computer
 

Run VNCVIEWER from remote site

  • Windows
    • "VNC server" = localhost:10
    • or "VNC server" = 127.0.0.1:10
    • 127.0.0.1 refers to the remote site host, but then the port 5910 is tunneled through ssh connection
  • Linux
    • In another shell (NOT the one where you are logged in to the remote computer) type:
Changed:
<
<
      • vncviewer :10
>
>
Added:
>
>
vncviewer :10
 
    • this assumes localhost - you better not have vncserver running on port 10 of your localhost!

Robot computer

  • IP address of robot computer is 192.168.5.172
  • Therefore, follow above instructions for cluster, but replace 192.168.5.236 with 192.168.5.172

Web

  • In order to access NYSBC internal websites (leginon dataserver, robot cameras, etc) on a remote machine, need to forward web port 80
  • example: to browse cem100 (leginon server):
   ssh -L 8080:cem100:80 username@207.239.59.21
  • Above command forwards cem100 port 80 data to the remote machine's port 8080
  • Now, to browse, open a browser on the local machine and go to http://localhost:8080
  • example 2: to view robot cameras:
   ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@207.239.59.21

Sharing a Windows computer externally

start vncserver on Windows

  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 21 Apr 2010

Revision 712 Nov 2010 - Main.BillRice

 
META TOPICPARENT name="CemITSystem"

How to tunnel port through SSH (e.g. for using VNC remotely)

Why?

If you are at another institution or at home and wish to use NYSBC computer facilities like the cluster or automated EM operation.

VNC

you must start the vnc server on the computer that you wish to view remotely

  • cluster
  • JEOL3200 computer running SerialEM
  • JEOL1230 computer running leginon
  • Robot computer running iRobot

connecting to cluster

start vncserver on Linux

  • the Linux server will create a "virtual" Desktop that will only be seen by vnc clients
  • vnc should be installed by default on most linux systems
  • vncserver -geometry 1280x1024 :10
  • geometry determines the size of the virtual desktop that will be created
  • :10 determine the port that will be used (5900 + the number you enter - in this case 5910)
  • you can select a different window manager by editing the file .vnc/xstartup
    • icewm is a nice one. twm is annoying but uses minimal resources. kde is a memory hog, don't use it
    • to use icewm, comment out the line "twm &" by adding a # at the start
    • add the line "/usr/apps/icewm/bin/icewm &"

ssh into nysbc from remote site

  • Windows - download and use Putty
    • in configuration page, edit the SSH->Tunnels
      • "Source port" = 5910
      • "Destination" = 192.168.5.236:5910 (where 192.168.5.236 is the cluster computer in this example)
      • click "Add" and you should see - L5910 192.168.5.236:5910 - appear in the box
    • in configuration page "Session" tab
      • enter 207.239.59.21 (external address of the NYSBC portal computer) or sftp.nysbc.org (address of sftp server)
        • you must have login privileges on this machine
    • It is recommended that you name and save this session so you don't have to enter this next time
    • Click "Open" to establish ssh connection (login)
  • Linux
    • from command line type
      • ssh -L 5910:192.168.5.236:5910 207.239.59.21 (192.168.5.236 is the IP address of the cluster, replace with IP address of desired computer)

Run VNCVIEWER from remote site

  • Windows
    • "VNC server" = localhost:10
    • or "VNC server" = 127.0.0.1:10
Changed:
<
<
    • 127.0.0.1 refers to the remote site host, but then the port 5910 is tunneled through ssh connectino
>
>
    • 127.0.0.1 refers to the remote site host, but then the port 5910 is tunneled through ssh connection
 
  • Linux
    • In another shell (NOT the one where you are logged in to the remote computer) type:
      • vncviewer :10
    • this assumes localhost - you better not have vncserver running on port 10 of your localhost!

Robot computer

  • IP address of robot computer is 192.168.5.172
  • Therefore, follow above instructions for cluster, but replace 192.168.5.236 with 192.168.5.172

Web

  • In order to access NYSBC internal websites (leginon dataserver, robot cameras, etc) on a remote machine, need to forward web port 80
  • example: to browse cem100 (leginon server):
   ssh -L 8080:cem100:80 username@207.239.59.21
  • Above command forwards cem100 port 80 data to the remote machine's port 8080
  • Now, to browse, open a browser on the local machine and go to http://localhost:8080
  • example 2: to view robot cameras:
   ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@207.239.59.21

Sharing a Windows computer externally

start vncserver on Windows

  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 21 Apr 2010

Revision 612 Nov 2010 - Main.BillRice

 
META TOPICPARENT name="CemITSystem"

How to tunnel port through SSH (e.g. for using VNC remotely)

Why?

If you are at another institution or at home and wish to use NYSBC computer facilities like the cluster or automated EM operation.

VNC

you must start the vnc server on the computer that you wish to view remotely

  • cluster
  • JEOL3200 computer running SerialEM
  • JEOL1230 computer running leginon
  • Robot computer running iRobot

connecting to cluster

start vncserver on Linux

  • the Linux server will create a "virtual" Desktop that will only be seen by vnc clients
  • vnc should be installed by default on most linux systems
  • vncserver -geometry 1280x1024 :10
  • geometry determines the size of the virtual desktop that will be created
  • :10 determine the port that will be used (5900 + the number you enter - in this case 5910)
  • you can select a different window manager by editing the file .vnc/xstartup
    • icewm is a nice one. twm is annoying but uses minimal resources. kde is a memory hog, don't use it
    • to use icewm, comment out the line "twm &" by adding a # at the start
    • add the line "/usr/apps/icewm/bin/icewm &"

ssh into nysbc from remote site

  • Windows - download and use Putty
    • in configuration page, edit the SSH->Tunnels
      • "Source port" = 5910
      • "Destination" = 192.168.5.236:5910 (where 192.168.5.236 is the cluster computer in this example)
      • click "Add" and you should see - L5910 192.168.5.236:5910 - appear in the box
    • in configuration page "Session" tab
      • enter 207.239.59.21 (external address of the NYSBC portal computer) or sftp.nysbc.org (address of sftp server)
        • you must have login privileges on this machine
    • It is recommended that you name and save this session so you don't have to enter this next time
    • Click "Open" to establish ssh connection (login)
  • Linux
    • from command line type
Changed:
<
<
      • ssh -L5910:192.168.5.172:5910 207.239.59.21
>
>
      • ssh -L 5910:192.168.5.236:5910 207.239.59.21 (192.168.5.236 is the IP address of the cluster, replace with IP address of desired computer)
Deleted:
<
<
      • this tunnels port 5910 to the robot computer and logs you into the cluster
      • if you want to establish a vnc connection to the cluster itself
        • ssh -L 5910:192.168.5.236:5910 207.239.59..21 (192.168.5.236 is the IP address of the cluster)
 

Run VNCVIEWER from remote site

  • Windows
    • "VNC server" = localhost:10
    • or "VNC server" = 127.0.0.1:10
    • 127.0.0.1 refers to the remote site host, but then the port 5910 is tunneled through ssh connectino
  • Linux
Changed:
<
<
    • vncviewer :10
>
>
    • In another shell (NOT the one where you are logged in to the remote computer) type:
Added:
>
>
      • vncviewer :10
 
    • this assumes localhost - you better not have vncserver running on port 10 of your localhost!

Robot computer

  • IP address of robot computer is 192.168.5.172
  • Therefore, follow above instructions for cluster, but replace 192.168.5.236 with 192.168.5.172

Web

  • In order to access NYSBC internal websites (leginon dataserver, robot cameras, etc) on a remote machine, need to forward web port 80
  • example: to browse cem100 (leginon server):
   ssh -L 8080:cem100:80 username@207.239.59.21
  • Above command forwards cem100 port 80 data to the remote machine's port 8080
  • Now, to browse, open a browser on the local machine and go to http://localhost:8080
  • example 2: to view robot cameras:
   ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@207.239.59.21

Sharing a Windows computer externally

start vncserver on Windows

  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 21 Apr 2010

Revision 512 Nov 2010 - Main.BillRice

 
META TOPICPARENT name="CemITSystem"

How to tunnel port through SSH (e.g. for using VNC remotely)

Why?

If you are at another institution or at home and wish to use NYSBC computer facilities like the cluster or automated EM operation.

VNC

you must start the vnc server on the computer that you wish to view remotely

  • cluster
  • JEOL3200 computer running SerialEM
  • JEOL1230 computer running leginon
  • Robot computer running iRobot

connecting to cluster

start vncserver on Linux

  • the Linux server will create a "virtual" Desktop that will only be seen by vnc clients
  • vnc should be installed by default on most linux systems
  • vncserver -geometry 1280x1024 :10
  • geometry determines the size of the virtual desktop that will be created
  • :10 determine the port that will be used (5900 + the number you enter - in this case 5910)
  • you can select a different window manager by editing the file .vnc/xstartup
    • icewm is a nice one. twm is annoying but uses minimal resources. kde is a memory hog, don't use it
    • to use icewm, comment out the line "twm &" by adding a # at the start
    • add the line "/usr/apps/icewm/bin/icewm &"
Changed:
<
<

start vncserver on Windows

>
>
Deleted:
<
<
  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"
 

ssh into nysbc from remote site

  • Windows - download and use Putty
    • in configuration page, edit the SSH->Tunnels
      • "Source port" = 5910
      • "Destination" = 192.168.5.236:5910 (where 192.168.5.236 is the cluster computer in this example)
      • click "Add" and you should see - L5910 192.168.5.236:5910 - appear in the box
    • in configuration page "Session" tab
      • enter 207.239.59.21 (external address of the NYSBC portal computer) or sftp.nysbc.org (address of sftp server)
        • you must have login privileges on this machine
    • It is recommended that you name and save this session so you don't have to enter this next time
    • Click "Open" to establish ssh connection (login)
  • Linux
    • from command line type
      • ssh -L5910:192.168.5.172:5910 207.239.59.21
      • this tunnels port 5910 to the robot computer and logs you into the cluster
      • if you want to establish a vnc connection to the cluster itself
        • ssh -L 5910:192.168.5.236:5910 207.239.59..21 (192.168.5.236 is the IP address of the cluster)

Run VNCVIEWER from remote site

  • Windows
    • "VNC server" = localhost:10
    • or "VNC server" = 127.0.0.1:10
    • 127.0.0.1 refers to the remote site host, but then the port 5910 is tunneled through ssh connectino
  • Linux
    • vncviewer :10
    • this assumes localhost - you better not have vncserver running on port 10 of your localhost!

Robot computer

  • IP address of robot computer is 192.168.5.172
  • Therefore, follow above instructions for cluster, but replace 192.168.5.236 with 192.168.5.172

Web

  • In order to access NYSBC internal websites (leginon dataserver, robot cameras, etc) on a remote machine, need to forward web port 80
  • example: to browse cem100 (leginon server):
   ssh -L 8080:cem100:80 username@207.239.59.21
  • Above command forwards cem100 port 80 data to the remote machine's port 8080
  • Now, to browse, open a browser on the local machine and go to http://localhost:8080
  • example 2: to view robot cameras:
   ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@207.239.59.21
Changed:
<
<
>
>

Sharing a Windows computer externally

Added:
>
>

start vncserver on Windows

  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"
 

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 21 Apr 2010

Revision 412 Nov 2010 - Main.BillRice

 
META TOPICPARENT name="CemITSystem"

How to tunnel port through SSH (e.g. for using VNC remotely)

Why?

If you are at another institution or at home and wish to use NYSBC computer facilities like the cluster or automated EM operation.

VNC

you must start the vnc server on the computer that you wish to view remotely

  • cluster
  • JEOL3200 computer running SerialEM
  • JEOL1230 computer running leginon
  • Robot computer running iRobot
Added:
>
>

connecting to cluster

 

start vncserver on Linux

  • the Linux server will create a "virtual" Desktop that will only be seen by vnc clients
  • vnc should be installed by default on most linux systems
  • vncserver -geometry 1280x1024 :10
  • geometry determines the size of the virtual desktop that will be created
  • :10 determine the port that will be used (5900 + the number you enter - in this case 5910)
  • you can select a different window manager by editing the file .vnc/xstartup
    • icewm is a nice one. twm is annoying but uses minimal resources. kde is a memory hog, don't use it
Added:
>
>
    • to use icewm, comment out the line "twm &" by adding a # at the start
    • add the line "/usr/apps/icewm/bin/icewm &"
 

start vncserver on Windows

  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"

ssh into nysbc from remote site

  • Windows - download and use Putty
    • in configuration page, edit the SSH->Tunnels
      • "Source port" = 5910
Changed:
<
<
      • "Destination" = 192.168.5.172:5910 (where 192.168.5.172 is the Robot computer in this example)
      • click "Add" and you should see - L5910 192.168.5.172:5910 - appear in the box
>
>
      • "Destination" = 192.168.5.236:5910 (where 192.168.5.236 is the cluster computer in this example)
      • click "Add" and you should see - L5910 192.168.5.236:5910 - appear in the box
Deleted:
<
<
      • if you want to establish vnc connection to the cluster itself:
        • "Destination" = 127.0.0.1:5910 (127.0.0.1 refers to local host from point of view of the cluster)
 
    • in configuration page "Session" tab
Changed:
<
<
      • enter 207.239.59.21 (external address of the cluster) or sftp.nysbc.org (address of sftp server)
>
>
      • enter 207.239.59.21 (external address of the NYSBC portal computer) or sftp.nysbc.org (address of sftp server)
 
        • you must have login privileges on this machine
    • It is recommended that you name and save this session so you don't have to enter this next time
    • Click "Open" to establish ssh connection (login)
  • Linux
    • from command line type
      • ssh -L5910:192.168.5.172:5910 207.239.59.21
      • this tunnels port 5910 to the robot computer and logs you into the cluster
      • if you want to establish a vnc connection to the cluster itself
Changed:
<
<
        • ssh -L 5910:127.0.0.1:5910 207.239.59..21 (127.0.0.1 refers to local host from point of view of the cluster -- may use localhost instead)
>
>
        • ssh -L 5910:192.168.5.236:5910 207.239.59..21 (192.168.5.236 is the IP address of the cluster)
 

Run VNCVIEWER from remote site

  • Windows
    • "VNC server" = localhost:10
    • or "VNC server" = 127.0.0.1:10
    • 127.0.0.1 refers to the remote site host, but then the port 5910 is tunneled through ssh connectino
  • Linux
    • vncviewer :10
Changed:
<
<
    • this assumes localhost - you better not have vncserver running on your localhost!
>
>
    • this assumes localhost - you better not have vncserver running on port 10 of your localhost!
 
Added:
>
>

Robot computer

  • IP address of robot computer is 192.168.5.172
  • Therefore, follow above instructions for cluster, but replace 192.168.5.236 with 192.168.5.172
 

Web

  • In order to access NYSBC internal websites (leginon dataserver, robot cameras, etc) on a remote machine, need to forward web port 80
  • example: to browse cem100 (leginon server):
   ssh -L 8080:cem100:80 username@207.239.59.21
  • Above command forwards cem100 port 80 data to the remote machine's port 8080
  • Now, to browse, open a browser on the local machine and go to http://localhost:8080
  • example 2: to view robot cameras:
   ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@207.239.59.21

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 21 Apr 2010

Revision 311 Aug 2010 - Main.BillRice

 
META TOPICPARENT name="CemITSystem"

How to tunnel port through SSH (e.g. for using VNC remotely)

Why?

If you are at another institution or at home and wish to use NYSBC computer facilities like the cluster or automated EM operation.

VNC

you must start the vnc server on the computer that you wish to view remotely

  • cluster
  • JEOL3200 computer running SerialEM
  • JEOL1230 computer running leginon
  • Robot computer running iRobot

start vncserver on Linux

  • the Linux server will create a "virtual" Desktop that will only be seen by vnc clients
  • vnc should be installed by default on most linux systems
  • vncserver -geometry 1280x1024 :10
  • geometry determines the size of the virtual desktop that will be created
  • :10 determine the port that will be used (5900 + the number you enter - in this case 5910)
  • you can select a different window manager by editing the file .vnc/xstartup
    • icewm is a nice one. twm is annoying but uses minimal resources. kde is a memory hog, don't use it

start vncserver on Windows

  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"

ssh into nysbc from remote site

  • Windows - download and use Putty
    • in configuration page, edit the SSH->Tunnels
      • "Source port" = 5910
      • "Destination" = 192.168.5.172:5910 (where 192.168.5.172 is the Robot computer in this example)
      • click "Add" and you should see - L5910 192.168.5.172:5910 - appear in the box
      • if you want to establish vnc connection to the cluster itself:
        • "Destination" = 127.0.0.1:5910 (127.0.0.1 refers to local host from point of view of the cluster)
    • in configuration page "Session" tab
Changed:
<
<
      • enter 74.211.206.21 (external address of the cluster) or sftp.nysbc.org (address of sftp server)
>
>
      • enter 207.239.59.21 (external address of the cluster) or sftp.nysbc.org (address of sftp server)
 
        • you must have login privileges on this machine
    • It is recommended that you name and save this session so you don't have to enter this next time
    • Click "Open" to establish ssh connection (login)
  • Linux
    • from command line type
Changed:
<
<
      • ssh -L5910:192.168.5.172:5910 74.211.206.21
>
>
      • ssh -L5910:192.168.5.172:5910 207.239.59.21
 
      • this tunnels port 5910 to the robot computer and logs you into the cluster
      • if you want to establish a vnc connection to the cluster itself
Changed:
<
<
        • ssh -L5910:127.0.0.1:5910 74.211.206.21 (127.0.0.1 refers to local host from point of view of the cluster)
>
>
        • ssh -L 5910:127.0.0.1:5910 207.239.59..21 (127.0.0.1 refers to local host from point of view of the cluster -- may use localhost instead)
 

Run VNCVIEWER from remote site

  • Windows
    • "VNC server" = localhost:10
    • or "VNC server" = 127.0.0.1:10
    • 127.0.0.1 refers to the remote site host, but then the port 5910 is tunneled through ssh connectino
  • Linux
    • vncviewer :10
    • this assumes localhost - you better not have vncserver running on your localhost!

Web

Changed:
<
<
  • In order to access NYSBC internal websites (legonon dataserver, robot cameras, etc) on a remote machine, need to forward web port 80
>
>
  • In order to access NYSBC internal websites (leginon dataserver, robot cameras, etc) on a remote machine, need to forward web port 80
 
  • example: to browse cem100 (leginon server):
Changed:
<
<
ssh -L 8080:cem100:80 username@74.211.206.21
>
>
ssh -L 8080:cem100:80 username@207.239.59.21
 
  • Above command forwards cem100 port 80 data to the remote machine's port 8080
  • Now, to browse, open a browser on the local machine and go to http://localhost:8080
  • example 2: to view robot cameras:
Changed:
<
<
ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@74.211.206.21
>
>
ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@207.239.59.21
 

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 21 Apr 2010

Revision 211 Aug 2010 - Main.BillRice

 
META TOPICPARENT name="CemITSystem"

How to tunnel port through SSH (e.g. for using VNC remotely)

Why?

If you are at another institution or at home and wish to use NYSBC computer facilities like the cluster or automated EM operation.

VNC

you must start the vnc server on the computer that you wish to view remotely

  • cluster
  • JEOL3200 computer running SerialEM
  • JEOL1230 computer running leginon
  • Robot computer running iRobot

start vncserver on Linux

  • the Linux server will create a "virtual" Desktop that will only be seen by vnc clients
  • vnc should be installed by default on most linux systems
  • vncserver -geometry 1280x1024 :10
  • geometry determines the size of the virtual desktop that will be created
  • :10 determine the port that will be used (5900 + the number you enter - in this case 5910)
  • you can select a different window manager by editing the file .vnc/xstartup
    • icewm is a nice one. twm is annoying but uses minimal resources. kde is a memory hog, don't use it

start vncserver on Windows

  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"

ssh into nysbc from remote site

  • Windows - download and use Putty
    • in configuration page, edit the SSH->Tunnels
      • "Source port" = 5910
      • "Destination" = 192.168.5.172:5910 (where 192.168.5.172 is the Robot computer in this example)
      • click "Add" and you should see - L5910 192.168.5.172:5910 - appear in the box
      • if you want to establish vnc connection to the cluster itself:
        • "Destination" = 127.0.0.1:5910 (127.0.0.1 refers to local host from point of view of the cluster)
    • in configuration page "Session" tab
      • enter 74.211.206.21 (external address of the cluster) or sftp.nysbc.org (address of sftp server)
        • you must have login privileges on this machine
    • It is recommended that you name and save this session so you don't have to enter this next time
    • Click "Open" to establish ssh connection (login)
  • Linux
    • from command line type
      • ssh -L5910:192.168.5.172:5910 74.211.206.21
      • this tunnels port 5910 to the robot computer and logs you into the cluster
      • if you want to establish a vnc connection to the cluster itself
        • ssh -L5910:127.0.0.1:5910 74.211.206.21 (127.0.0.1 refers to local host from point of view of the cluster)

Run VNCVIEWER from remote site

  • Windows
    • "VNC server" = localhost:10
    • or "VNC server" = 127.0.0.1:10
    • 127.0.0.1 refers to the remote site host, but then the port 5910 is tunneled through ssh connectino
  • Linux
    • vncviewer :10
    • this assumes localhost - you better not have vncserver running on your localhost!
Added:
>
>

Web

  • In order to access NYSBC internal websites (legonon dataserver, robot cameras, etc) on a remote machine, need to forward web port 80
  • example: to browse cem100 (leginon server):
   ssh -L 8080:cem100:80 username@74.211.206.21
  • Above command forwards cem100 port 80 data to the remote machine's port 8080
  • Now, to browse, open a browser on the local machine and go to http://localhost:8080
  • example 2: to view robot cameras:
   ssh -L 8080:192.168.5.160:80 -L 8081:192.168.5.166:80 username@74.211.206.21
 

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 21 Apr 2010

Revision 121 Apr 2010 - Main.DavidStokes

 
META TOPICPARENT name="CemITSystem"

How to tunnel port through SSH (e.g. for using VNC remotely)

Why?

If you are at another institution or at home and wish to use NYSBC computer facilities like the cluster or automated EM operation.

VNC

you must start the vnc server on the computer that you wish to view remotely

  • cluster
  • JEOL3200 computer running SerialEM
  • JEOL1230 computer running leginon
  • Robot computer running iRobot

start vncserver on Linux

  • the Linux server will create a "virtual" Desktop that will only be seen by vnc clients
  • vnc should be installed by default on most linux systems
  • vncserver -geometry 1280x1024 :10
  • geometry determines the size of the virtual desktop that will be created
  • :10 determine the port that will be used (5900 + the number you enter - in this case 5910)
  • you can select a different window manager by editing the file .vnc/xstartup
    • icewm is a nice one. twm is annoying but uses minimal resources. kde is a memory hog, don't use it

start vncserver on Windows

  • the Windows server will display the standard Desktop
  • download TightVNC? and install
  • click on VNCServer application
  • specify password that you can remember
  • you can specify the port number under the Properties->Server page
    • click "Display" and enter 10 or click or click on "Ports" and enter 5910
  • you can specify password on the Properties -> Server page
  • you can allow multiple people to connect to the server on Properties -> Administration page
    • choose "Automatic shared sessions"

ssh into nysbc from remote site

  • Windows - download and use Putty
    • in configuration page, edit the SSH->Tunnels
      • "Source port" = 5910
      • "Destination" = 192.168.5.172:5910 (where 192.168.5.172 is the Robot computer in this example)
      • click "Add" and you should see - L5910 192.168.5.172:5910 - appear in the box
      • if you want to establish vnc connection to the cluster itself:
        • "Destination" = 127.0.0.1:5910 (127.0.0.1 refers to local host from point of view of the cluster)
    • in configuration page "Session" tab
      • enter 74.211.206.21 (external address of the cluster) or sftp.nysbc.org (address of sftp server)
        • you must have login privileges on this machine
    • It is recommended that you name and save this session so you don't have to enter this next time
    • Click "Open" to establish ssh connection (login)
  • Linux
    • from command line type
      • ssh -L5910:192.168.5.172:5910 74.211.206.21
      • this tunnels port 5910 to the robot computer and logs you into the cluster
      • if you want to establish a vnc connection to the cluster itself
        • ssh -L5910:127.0.0.1:5910 74.211.206.21 (127.0.0.1 refers to local host from point of view of the cluster)

Run VNCVIEWER from remote site

  • Windows
    • "VNC server" = localhost:10
    • or "VNC server" = 127.0.0.1:10
    • 127.0.0.1 refers to the remote site host, but then the port 5910 is tunneled through ssh connectino
  • Linux
    • vncviewer :10
    • this assumes localhost - you better not have vncserver running on your localhost!

  • Set ALLOWTOPICVIEW =

-- DavidStokes - 21 Apr 2010

 
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding this intranet, Send feedback