VNC and X Window Connections

To launch an X application, make an ssh tunnel and then launch the X app an it'll appear locally.

  • ssh -X -J admin@usno-serv-1t-ext server-1p
  • emacs &

To create a VNC connection:

  1. ssh -L 5901:localhost:5901 -J admin@usno-serv-1t-ext admin@server-1
  2. Set a password using vncpasswd
  3. Start it by doing vncserver. Note the display number (probably one). The ssh tunnel is set up to work with display :1. For display :2 you would need to use 5902 instead of 5901 when creating the tunnel.
  4. In a separate local terminal do vncviewer localhost:5901 (for display :1) and enter the vncpassword you selected above when a popup window appears.
  5. When done, on the terminal with the tunnel do vncserver -kill :displayNumber (e.g., 1 or 2).
  6. Exit from the ssh session if desired.

Viewing the Nagios dashboard on the local browser.

  1. To view the nagios dashboard you have to create a tunnel to reach the https port (443). You can do that with a separate tunnel or by adding additional -L clauses to the ssh.
    • Example: ssh -L 10443:localhost:443 -J admin@usno-serv-1t-ext admin@server-1
    • Example: ssh -L 5901:localhost:5901 -L 10443:localhost:443 -J admin@usno-serv-1t-ext admin@server-1
  2. On a local browser open https://localhost:10443/nagios. This will ask for the nagios admin user ("admin") and password.

-- JimJacobs - 2019-10-24
Topic revision: r1 - 2019-10-24, JimJacobs
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback