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>
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>
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.
ReplyDeleteThis was for firmware v5.2.5, sorry.
Delete