Monday, October 10, 2016

Hikvision cURL Enable SSH

Here is how to enable SSH on my Hikvision Camera using a cURL command, you can use it on the camera's as well.


cURL Command:
curl -T ssh_on.xml http://admin:12345@192.168.1.100:80/ISAPI/System/Network/ssh

curl -T ssh_off.xml http://admin:12345@192.168.1.100:80/ISAPI/System/Network/ssh


Contents of ssh_on.xml:

<?xml version="1.0" encoding="UTF-8"?>
<SSH version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<enabled>true</enabled>
</SSH>


Contents of ssh_off.xml:

<?xml version="1.0" encoding="UTF-8"?>
<SSH version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<enabled>false</enabled>
</SSH>

2 comments:

  1. Which model camera(s) does this work on? It does not work on my DS-2CD2132F-I with V5.4.0 firmware (the .../ssh endpoint does not exist; attempting to upload the file gives an invalid operation status code.

    ReplyDelete
    Replies
    1. This was for firmware v5.2.5, sorry.

      Delete

Thanks for your input.

PiKVM to NVR

  Trying to connect to your IP Camera Network Video Recorder (NVR) via your PiKVM and it’s not working? No video from the NVR on...