wiki:HowTo/ForwardVideoOverSSH

Version 10 (modified by sedwards@bbn.com, 5 years ago) (diff)

--

Viewing Client Video on Your Local Machine

For demos and testing it is frequently helpful to view a video or other display that would be on a client machine.

Setup

How to SSH Forward
  • There is a server running an apache server or equivalent
  • There is a client that is able to access the server via the data plane
  • Your SSH keys are loaded on the GENI so it is possible for you to SSH to the client from your local machine using a command similar to the following
    ssh jdoe@pc2.instageni.ku.gpeni.net -p 34106
    

Instructions

  1. Create an ~/.ssh/config on your local machine contain the following (or append the following to an existing config):
    Host vlc-client
      # The IP or hostname of the client you want to view the video from
      HostName pc2.instageni.ku.gpeni.net
      # The SSH port of the client you want to view the video from
      Port 34106
      # Your SSH username
      User jdoe
      # Pick a port to forward from your local machine; IP address and port of the data plane address of the server you are trying to connect to
      LocalForward 6080 10.10.1.1:80
      # The private ssh key you want to use to connect
      IdentityFile /home/jdoe/.ssh/id_geni_ssh_rsa
    
  2. On your local machine, run:
    ssh vlc-client
    
  3. Leave the SSH connection open
  4. On your local machine, browse to:
    http://localhost:6080
    

Attachments (2)

Download all attachments as: .zip