1-21
Follow these steps to specify a source IP address/interface for the SSH client:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Specify a source IP address for
the SSH client
ssh2 source-ip ip-address
Optional
By default, no source IP
address is configured.
Specify a source interface for
the SSH client
ssh2 source-interface
interface-type interface-number
Optional
By default, no source interface
is configured.
Establishing the connection between the SSH client and server
The client’s method of establishing an SSH connection to the SSH server varies with authentication
types.
Follow these steps to establish an SSH connection:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Start the client to establish a
connection with an SSH server
ssh2
{
host-ip
|
host-name
}
[
port-num
] [
prefer_kex
{
dh_group1
|
dh_exchange_group
} |
prefer_ctos_cipher
{
3des
|
des
|
aes128
} |
prefer_stoc_cipher
{
3des
|
des
|
aes128
} |
prefer_ctos_hmac
{
sha1
|
sha1_96
|
md5
|
md5_96
} |
prefer_stoc_hmac
{
sha1
|
sha1_96
|
md5
|
md5_96
} ] *
Required
In this command, you can also
specify the preferred key
exchange algorithm, encryption
algorithms and HMAC
algorithms between the server
and client.
HMAC: Hash-based message
authentication code.
Support for the 3des keyword
depends on the number of
encryption bits of the software
version. The 168-bit version
supports this keyword, while
the 56-bit version does not.
Displaying and Maintaining SSH Configuration
To do...
Use the command...
Remarks
Display the public key
information of the current
switch’s key pairs
display public-key local rsa public
Display information about
locally saved public keys of
SSH peers
display public-key peer
[
brief
|
name
pubkey-name
]
Display information about SSH
status and about sessions of
active connections with SSH
clients
display ssh server
{
session
|
status
}
Available in any view