You can use STelnet to log in to an SSH server from an SSH client to configure and manage the server.
You can log in to the SSH server from the SSH client without the need of specifying the listening port number only when the listening port number of the server is 22. Otherwise, the listening port number must be specified.
Perform the following steps on the device that functions as an SSH client:
The system view is displayed.
An encryption algorithm is configured for the SSH client.
For security purposes, you are advised to use secure algorithms such as AES128_CTR, AES256_CTR, AES192_CTR, AES128_GCM, and AES256_GCM.
An HMAC authentication algorithm is configured for the SSH client.
For security purposes, you are advised to use a secure algorithm (SHA2_256 or SHA2_512.)
A key exchange algorithm list is configured for the SSH client.
For security purposes, you are advised to use the following key exchange algorithms: dh_group_exchange_sha256.
The configuration is committed.
If the Layer 3 network connection is normal, and the source address is an IPv4 address:
Run the stelnet [ -a source-ip-address ] [ -force-receive-pubkey ] host-ip-address [ server-port ] [ [ prefer_kex prefer_kex ] | [ prefer_ctos_cipher prefer_ctos_cipher ] | [ prefer_stoc_cipher prefer_stoc_cipher ] | [ prefer_ctos_hmac prefer_ctos_hmac ] | [ prefer_stoc_hmac prefer_stoc_hmac ] | [ prefer_ctos_compress zlib ] | [ prefer_stoc_compress zlib ] | [ -vpn-instance vpn-instance-name ] | [ -ki interval ] | [ -kc count ] | [ identity-key identity-key-type ] | [ user-identity-key user-key ] ] * command to use an IPv4 address to log in to the SSH server using STelnet.
If the Layer 3 network connection is normal, and the source address is an IPv6 address:
Run the stelnet ipv6 [ -a source-ipv6-address ] [ -force-receive-pubkey ] host-ipv6-address [ [ public-net | -vpn-instance vpn-instance-name ] | [ -oi { interface-name | interface-type interface-number } ] | [ server-port ] | [ prefer_kex prefer_kex ] | [ prefer_ctos_cipher prefer_ctos_cipher ] | [ prefer_stoc_cipher prefer_stoc_cipher ] | [ prefer_ctos_hmac prefer_ctos_hmac ] | [ prefer_stoc_hmac prefer_stoc_hmac ] | [ prefer_ctos_compress zlib ] | [ prefer_stoc_compress zlib ] | [ -ki interval ] | [ -kc count ] | [ identity-key identity-key-type ] | [ user-identity-key user-key ] ] * command to use an IPv6 address to log in to the SSH server using STelnet.
If the Layer 3 network connection is abnormal, the Layer 2 link is normal, and the source address is an IPv4 address:
Run the stelnet -tunnel lldp -a source-ip-address -i { interface-type interface-number | interface-name } host-ip-address [ server-port ] [ [ prefer_kex prefer_kex ] | [ prefer_ctos_cipher prefer_ctos_cipher ] | [ prefer_stoc_cipher prefer_stoc_cipher ] | [ prefer_ctos_hmac prefer_ctos_hmac ] | [ prefer_stoc_hmac prefer_stoc_hmac ] | [ prefer_ctos_compress zlib ] | [ prefer_stoc_compress zlib ] | [ -ki interval ] | [ -kc count ] | [ identity-key identity-key-type ] | [ user-identity-key user-key ] ] * command to use an IPv4 address to log in to the SSH server using STelnet.
If the Layer 3 network connection is abnormal, the Layer 2 link is normal, and the source address is an IPv6 address:
Run the stelnet ipv6 -tunnel lldp -a source-ipv6-address -i { interface-type interface-number | interface-name } host-ipv6-address [ server-port ] [ [ prefer_kex prefer_kex ] | [ prefer_ctos_cipher prefer_ctos_cipher ] | [ prefer_stoc_cipher prefer_stoc_cipher ] | [ prefer_ctos_hmac prefer_ctos_hmac ] | [ prefer_stoc_hmac prefer_stoc_hmac ] | [ prefer_ctos_compress zlib ] | [ prefer_stoc_compress zlib ] | [ -ki interval ] | [ -kc count ] | [ identity-key identity-key-type ] | [ user-identity-key user-key ] ] * command to use an IPv6 address to log in to the SSH server using STelnet.