beautypg.com

Session request, Interaction – H3C Technologies H3C SecPath F1000-E User Manual

Page 59

background image

3

Password authentication: The server uses AAA for authentication of the client. During password

authentication, the client encrypts its username and password, encapsulates them into a password

authentication request, and sends the request to the server. Upon receiving the request, the server
decrypts the username and password, checks the validity of the username and password locally or
by a remote AAA server, and then informs the client of the authentication result.

Publickey authentication: The server authenticates the client by the digital signature. During
publickey authentication, the client sends to the server a publickey authentication request that

contains its username, public key, and publickey algorithm information. The server checks whether

the public key is valid. If the public key is invalid, the authentication fails; otherwise, the server
authenticates the client by the digital signature. Finally, the server sends a message to the client to

inform the authentication result. Currently, the device supports two publickey algorithms for digital

signature: RSA and DSA.

The following gives the steps of the authentication stage:

1.

The client sends to the server an authentication request, which includes the username,
authentication method (password authentication or publickey authentication), and information

related to the authentication method (for example, the password in the case of password

authentication).

2.

The server authenticates the client. If the authentication fails, the server informs the client by

sending a message, which includes a list of available methods for re-authentication.

3.

The client selects a method from the list to initiate another authentication.

4.

The above process repeats until the authentication succeeds or the number of failed authentication
attempts exceeds the maximum of authentication attempts and the session is torn down.

NOTE:

Besides password authentication and publickey authentication, SSH2.0 provides another two
authentication methods:

password-publickey: Performs both password authentication and publickey authentication if the client is
using SSH2.0 and performs either if the client is running SSH1.

any: Performs either password authentication or publickey authentication.

Session request

After passing authentication, the client sends a session request to the server, while the server listens to

and processes the request from the client. After successfully processing the request, the server sends back

to the client an SSH_SMSG_SUCCESS packet and goes on to the interaction stage with the client.

Otherwise, the server sends back to the client an SSH_SMSG_FAILURE packet, indicating that the
processing fails or it cannot resolve the request.

Interaction

In this stage, the server and the client exchanges data in the following way:

The client encrypts and sends the command to be executed to the server.

The server decrypts and executes the command, and then encrypts and sends the result to the client.

The client decrypts and displays the result on the terminal.