1922 CHAPTER 102: SSH2.0 C ONFIGURATIONauthenticate the client, and then sends a message to inform the success orfailure of the authentication.n Besides password authentication and publickey authentication, SSH2.0 providesanother two authentication methods■ password-publickey: Performs both password authentication and RSAauthentication of the client. A client running SSH1 client only needs to passeither type of the two, while a client running SSH2 client must pass both ofthem to login.■ any: Performs either password authentication or publickey authentication. Theclient tries publickey authentication first.Session requestAfter passing authentication, the client sends a session request to the server, whilethe server listens to and processes the request from the client. If the client passesauthentication, the server sends back to the client an SSH_SMSG_SUCCESS packetand goes on to the interactive session stage with the client. Otherwise, the serversends back to the client an SSH_SMSG_FAILURE packet, indicating that theprocessing fails or it cannot resolve the request.Interactive sessionIn this stage, the server and the client exchanges data in this 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 sendsthe result to the client.■ The client decrypts and displays the result on the terminal.n ■ During interactive session, the client can send the commands to be performedby pasting the text, which must be within 2000 bytes. It is recommended thatthe text pasted be commands in the same view; otherwise, the server may notbe able to perform the commands.■ If the text exceeds 2000 bytes, you can upload the configuration file to theserver and use the configuration file to restart the server so that the serverexecutes the commands.Configuring theDevice as an SSHServerSSH ServerConfiguration Task ListComplete the following tasks to configure an SSH server:Task Remarks“Enabling SSH Server” on page 1923 Required“Configuring the User Interfaces for SSH Clients” onpage 1923Required