I used MOTION as the video feed. Here is some output and also commands I used to get it done. Thanks Doug, for adding your 2 cents:
Setup UBUNTU 14 client to ssh to a UBUNTU 14 SERVER
Create a public key (pasted into server) and private key (attached to client) so the two computers can establish a connection (password authentication disabled).
On UBUNTU client, create an SSH key pair:
From terminal type:
ssh-keygen -t rsa
Save the key in the default folder is fine:
/home/user/.ssh/id_rsa
Upload the id_rsa.pub file to the remote host by logging in AS THE SAME USER you will remote into.
If password authentication is still enabled, you can connect to the ssh server, login as the user you want to connect remotely AS, and move the public key to the correct location:
cat id_rsa.pub >> ~/.ssh/authorized_keys
You will place it in the users folder that you want to log in WITH. (i.e. Joe)
Put it into /etc/ssh/sshd_config
Verify how you can login to this server:
RSAAuthentication yes
PubkeyAuthentication yes
PasswordAuthentication no
Restart the SSH server
sudo /etc/init.d/ssh reload
Check to see if USB is plugged in correctly:
dmesg | grep -i usb
or
ls /dev/video*
INSTALL MOTION:
Joe@linux1:~$ sudo apt-get install motion
Create a hidden .motion folder under our profile and copy the config file to our profile:
mkdir .motion
sudo cp /etc/motion/motion.conf ~/.motion/motion.conf
Configure motion.conf by using the following settings:
sudo nano ~/.motion/motion.conf
daemon on
process_id_file /var/run/motion/motion.pid #note the location and create directory as needed
videodevice /dev/video0 #note the locatio of the device and make sure camera is same location
webcam_port 8081 #note the location of listening video port
output_normal off #change this to off for video streaming instead of images w motion detect
Create a folder for motion in /var/run/motion so the process ID can be created
sudo mkdir /var/run/motion
Start Motion
sudo motion
SSH into the Ubuntu server from Ubuntu client and port forward the listening video port to port 900 and view it in a web browser on the client workstation
ssh -L 9000:localhost:8081 gabriel@10.140.6.46
In web browser on the ubuntu client machine type:
http://localhost:9000
You should see the video feed in your web browser.