< Home

Enabling the first authentication function on an SSH client

This section provides a sample of enabling the first authentication function on an SSH client using the config method.

Table 1 Enabling the first authentication function on an SSH client

Operation

XPATH

edit-config:config

/huawei-stelnet:client/first-time-enable

Data Requirements

Table 2 Enabling the first authentication function on an SSH client

Item

Data

Description

Whether the first authentication function on an SSH client is enabled

true

Enable the first authentication function on an SSH client.

Request Example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <stelnet:client xmlns:stelnet="urn:huawei:params:xml:ns:yang:huawei-stelnet">
        <stelnet:first-time-enable>true</stelnet:first-time-enable>
      </stelnet:client>
    </config>
  </edit-config>
</rpc>

Response Example

Sample of successful response

<?xml version='1.0' encoding='UTF-8'?> 
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >