Categories
Knowledge Support Cloudvue Cloudvue Gateway Support Categories Products

Using Rsync to Transfer Files to a Cloudvue Gateway

Description 

At times it may be necessary to move files to a Cloudvue Gateway and while other tools such as SCP or MobaXterm can usually manage the job, rsync can track progress and resume after an interruption which can be particularly useful when transferring large files like the latest Cloudvue software or on slow or unstable connections.

Product

  • Cloudvue Gateway

Solution

The command structure is:

rsync -p -e ‘ssh -p [PORT]’ [PATH/FILENAME] smartvue@[IPADDRESS]:/home/smartvue
  • -P  option will force rsync to show a progress bar and keep partially transferred files. 
  • -e  option allows you to specify a different listening port on the remote host
  • ‘ssh – p [PORT]’  Specifies that ssh be used through a specific port number, use 7627 if local or whatever port was assigned in Cloudvue Manager when setting up the tunnel
  • [PATH/FILENAME]  The local path and  file name to be transferred
  • [IPADDRESS]  The IP address of the Cloudvue Gateway, the LAN IP if local or localhost when tunneling
  • :/home/smartvue  The smartvue home folder on Cloudvue Gateways

Note: When tunneling you must first establish the tunnel. You will then need to open a 2nd instance of WSL or terminal to run the rsync commands.

Examples

In the following examples a file named “22.9.2-smartvue-x64-production.tar.bz2” located in “/home/joakest/tunneling/” is transferred to the gateways smartvue users home folder.

Local Connection

$ rsync -P -e 'ssh -p 7627' /home/joakest/tunneling/22.9.2-smartvue-x64-production.tar.bz2 smartvue@192.168.1.180:/home/smartvue
smartvue@localhost's password:
22.9.2-smartvue-x64-production.tar.bz2
200,493,957 100% 390.99MB/s 0:00:00 (xfr#1, to-chk=0/1)
  • When prompted enter the SSH password found in Cloudvue Manager.
  • The progress of the file transfer will display, and the prompt will return when completed.

Tunnel Connection

$ rsync -P -e 'ssh -p 8346' 22.9.2-smartvue-x64-production.tar.bz2 smartvue@localhost:/home/smartvue
The authenticity of host '[localhost]:8346 ([127.0.0.1]:8346)' can't be established.
ED25519 key fingerprint is SHA256:nw6P03KIwsjiKfy2fkJJjRUSi4dJA6gwLyd7/+0Fz0Y.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

Warning: Permanently added '[localhost]:8346' (ED25519) to the list of known hosts.

smartvue@localhost's password:
22.9.2-smartvue-x64-production.tar.bz2
200,493,957 100% 249.79kB/s 0:13:03 (xfr#1, to-chk=0/1)
  • Since this is the first time a ssh connection has been established to this NVR from the local machine the authenticity warning will appear.
  • Continue by typing in “yes” and pressing enter.

Categories
Knowledge Support Cloudvue Cloudvue Cameras Support Categories Products

Adding an Authorized Public SSH Key to a C2C

Description 

SSH access to Cloudvue C2C devices  depends  on  RSA public/private key pairs.  Public keys for L3 Cloudvue support were added into the Cloudvue production software with the release of 22.9.0 in January of 2023.   The following instructions can be used to temporarily add a public ssh key to a C2C device.  SSH public keys added in this fashion will not survive a normal Cloudvue software update.

Product 

  • Cloudvue C2C

Solution

Prerequisites

  • If one does not already exist you will need to generate an ssh key pair, see Knowledge Base Article #13051 “Cloudvue SSH Tunneling” for details
  • A copy of your public key, the contents of (~/.ssh/id_rsa.pub)

Find a Buddy

You will need to get the assistance of someone who already has ssh access to the camera to SSH into the camera and make the necessary changes

Extract Cloudvue Software

Run the following command on the C2C to extract the contents of the Cloudvue software tarball into a temporary folder for editing:

mkdir -p /tmp/tBall && tar -xf smartvue.tar.gz -C /tmp/tBall

Add Public Key

Edit the authorized_keys file and add the new public key using vi

NOTE: vi is the only text editor available

vi /tmp/tBall/home/smartvue/.ssh/authorized_keys
  • Each authorized users will be listed along with their public ssh-rsa key (see example)
  • Insert your information at the bottom of this file beginning with a comment “#” and your name then followed by a line with your public key
  • How you paste will depend  on the program you are using to SSH. In PuTTY it’s just right clicking on the window, in other terminals you may need to right-click and then choose paste in the menu that pops up.
  • vi commands
    • G – Uppercase letter “G” goes to the bottom of the file
    • o – lowercase letter “o” inserts a line below the current line and goes into editing mode
    • ⏎ – Enter key creates a new line below the current one (just putting this here to be thorough)
    • ␛ – Escape key exits “insert mode” in vi
    • :wq⏎ – colon opens up a prompt to type a command, the w  stands for “write” and will save the changes, the q stands for “quit” and will exit vi, Enter key runs the command
    • q!⏎ – If you ever need to quit without saving, leave out the w and add an ! after the q (that tells it to force quit ignoring any changes), Enter key runs the command

Recreate Tarball

Use the following command to recreate the cloudvue software tarball and cleanup temporary files

cd /tmp/tBall && tar -czf ~/smartvue.tar.gz * && cd ~ && rm -rf /tmp/tBall

Install the Cloudvue Software

This will apply the new changes.  A reboot is not necessary since we aren’t modifying any running services

tar -xf ~/smartvue.tar.gz -C /
Categories
Cloudvue Knowledge Support Cloudvue Gateway Support Categories

Moving Files From Cloudvue Gateway to Windows

Description 

At times it may be necessary to move or copy files from a Cloudvue Gateway to a local machine. WinSCP Portable establishes an SSH  connection between a machine running Windows and a Gateway.  It offers a convenient side by side file explorer view of the local and Gateway directories and files making it simple to drag and drop files from the Gateway to the local machine.

Product 

  • Cloudvue Gateway

Solution

WinSCP Portable

Cloudvue Manager

  • Access the Cloudvue Gateway device page
  • Make note of the SSH password and the Network IP Address

Connecting to a Cloudvue Gateway

  • Launch WinSCP Portable
  • A New Session Login window will appear
  • Enter the appropriate settings
    • File Protocol: SCP
    • Host name: Host name or IP address of the Cloudvue Gateway
    • Port number: 7627
    • User name: smartvue
    • Password: [SSH password]
  • Click Login
  • NOTE: A window like the following will appear on the initial connection
  • Select Yes
  • Once connected you will have a side-by-side file explorer view of your host machine and the Gateway
  • Drag and drop to move files between the machines
Categories
Cloudvue Cloudvue Cameras Knowledge Support Cloudvue Gateway Support Categories

Manually Calculating the SSH Password for a Cloudvue Device

*** INTERNAL USE ***

Description 

The following instructions can be used to manually calculate the ssh password for a Cloudvue video device.

Product 

  • Cloudvue Gateway
  • C2C

Solution

Cloudvue Gateway

The ssh password is the first 32 characters of the MD5 Hash returned when using the following combination

MAC + Version + 3cadcddd84a94e1014f6a9bfeeecfd6

Where MAC is the MAC address of the device in all CAPS and Version is the version of Cloudvue Software the gateway is running

Linux

$ echo -n AC1F6BB04DDC22.9.0a3cadcddd84a94e1014f6a9bfeeecfd6 | md5sum | cut -c 1-32 8d30ee28cc2e0a736e4da9568a3a2367
$ 8d30ee28cc2e0a736e4da9568a3a2367

C2C

The ssh password, while similar to the Cloudvue Gateway, uses only the first 16 characters of the MD5 Hash returned when using the following combination

MAC + Version + 3cadcddd84a94e1014f6a9bfeeecfd6

Where MAC is the MAC address of the device in all CAPS and Version is the version of Cloudvue Software the C2C device is running

Linux

$ echo -n 0050F96C05B122.9.0a3cadcddd84a94e1014f6a9bfeeecfd6 | md5sum | cut -c 1-16
$ 47fae762f9ff87bc
Categories
Knowledge Support Support exacqVision Hardware

Enabling / Disabling SSH on ExacqVision Linux Server

Description 

SSH is installed on ExacqVision Servers at the time of manufacture; however, for security purposes, SSH is disabled.  To enable remote administration of your ExacqVision system via SSH, it must first enabled. 

Product 

Linux (Ubuntu)

Solution

Using Exacq Linux Utilities 

  1. On the desktop of the NVR, launch Exacq Linux Utilities 
  2. Click System
  3. Click SSH, the current SSH Access Status will be displayed 
  4. Click Open SSH to enable or Click Close SSH to disable 
  5. Close exacq Linux Utilities

Using scripts

To Enable

To Disable 

Installing the Package

  1. Using Places, navigate to the downloaded file
  2. Right click on the file and choose open with GDebi Package Installer
  3. The Package Installer will launch
  4. Choose Install Package
  5. If prompted provide the admin credentials
  6. When the package has been successfully installed close the Package Installer

    Note: Uninstalling the packages has NO effect, SSH will either be enabled or disabled based on the last package installed.

Using Terminal

To Enable

sudo nano /etc/ssh/sshd_config

Change or add the following line at the bottom of the file and save.

ListenAddress 0.0.0.0

To Disable 

sudo nano /etc/ssh/sshd_config

Change or add the following line at the bottom of the file and save.

ListenAddress 127.0.0.1

<br>