
1-35
Note that when logging into the SSH server using publickey authentication, an SSH client needs to read
its own private key for authentication. As two algorithms (RSA or DSA) are available, the
identity-key
keyword must be used to specify one algorithm in order to get the correct private key.
Examples
# Log into SSH server 10.214.50.51 with:
z
dh_exchange_group
as the preferred key exchange algorithm,
z
aes128
as the preferred server-to-client encryption algorithm,
z
md5
as the preferred client-to-server HMAC algorithm, and
z
sha1_96
as the preferred server-to-client HMAC algorithm.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ssh2 10.214.50.51 prefer_kex dh_exchange_group prefer_stoc_cipher aes128
prefer_ctos_hmac md5 prefer_stoc_hmac sha1_96
ssh2 source-interface
Syntax
ssh2 source-interface interface-type interface-number
undo ssh2 source-interface
View
System view
Parameters
interface-type
: Source interface type.
interface-number
: Source interface number.
Description
Use the
ssh2 source-interface
command to specify a source interface for the SSH client. If the
specified interface does not exist, the command fails.
Use the
undo ssh2 source-interface
command to cancel the source interface setting. Then, a local
device address determined by the system is used to access an SSH server.
Examples
# Specify source interface Vlan-interface 1 for the SSH client.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ssh2 source-interface Vlan-interface 1
ssh2 source-ip
Syntax
ssh2 source-ip ip-address
undo ssh2 source-ip