No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

RESTful API Reference

CloudEngine 12800 and 12800E V200R005C10

This document describes the OPS APIs supported by the device, including OPS-supported operations, request examples, elements in the requests, response examples, elements in the responses, and response status codes.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Query SSH Server Session Information

Query SSH Server Session Information

Operation

URI

Description

GET

/sshs/sshSessionStatuss/sshSessionStatus

Query SSH server session information.

After configuring SSH attributes, you can view the global configurations of the SSH server and current session information.

  • Request example
    <?xml version="1.0" encoding="UTF-8"?>
    <sshSessionStatus>
        <serviceIndex></serviceIndex>
        <SshSessNum></SshSessNum>
        <sshVersion></sshVersion>
        <connState></connState>
        <userName></userName>
        <ctosCipher></ctosCipher>
        <stocCipher></stocCipher>
        <ctosCompress></ctosCompress>
        <stocCompress></stocCompress>
        <ctosHMAC></ctosHMAC>
        <stocHMAC></stocHMAC>
        <keyExchange></keyExchange>
        <serviceType></serviceType>
        <sessionRetry></sessionRetry>
        <sessionAuthType></sessionAuthType>
        <connectionPort></connectionPort>
        <sessionKeyType></sessionKeyType>        
    </sshSessionStatus>

    Table 13-29 describes elements in requests.

    Table 13-29 Elements

    Element

    Description

    serviceIndex

    Specifies the service index.

    SshSessNum

    Specifies the number of SSH sessions.

    sshVersion

    Specifies the SSH version.

    connState

    Specifies the SSH session type.

    • VTY
    • NCA
    • SFTP

    userName

    Specifies the name of an SSH session.

    ctosCipher

    Specifies the name of the encryption algorithm sent by the client to the server.

    stocCipher

    Specifies the name of the encryption algorithm sent by the server to the client.

    ctosCompress

    Specifies the name of the compression algorithm sent by the client to the server.

    stocCompress

    Specifies the name of the compression algorithm sent by the server to the client.

    ctosHMAC

    Specifies the name of the HMAC algorithm sent by the client to the server.

    stocHMAC

    Specifies the name of the HMAC algorithm sent by the server to the client.

    keyExchange

    Specifies the name of the key exchange algorithm.

    serviceType

    Specifies the SSH user service type:

    • sftp
    • stelnet
    • snetconf

    sessionRetry

    Specifies the number of retry times.

    sessionAuthType

    Specifies an authentication type:

    • password
    • rsa
    • password-rsa
    • all
    • ecc
    • password-ecc
    • dsa
    • password-dsa

    connectionPort

    Specifies the port number used to establish an SSH connection.

    sessionKeyType

    Specifies the public key session type, which can be RSA ECC or DSA.

  • Response example (XML format)
    <?xml version="1.0" encoding="UTF-8"?>
    <sshClient>
        <keepAliveTime>3</keepAliveTime>
        <keepAliveCount>3</keepAliveCount>      
    </sshClient>

    Table 13-30 describes elements in responses.

    Table 13-30 Elements

    Element

    Description

    keepAliveTime

    Specifies the Keepalive time.

    keepAliveCount

    Specifies the Keepalive count.

Translation
Download
Updated: 2019-04-03

Document ID: EDOC1100075372

Views: 10295

Downloads: 16

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next