127To do… Use the command… Remarks5. Set the maximum number ofSSH authentication attemptsssh server authentication-retries timesOptional3 by defaultAuthentication will fail if the number of authentication attempts (including both publickey and passwordauthentication) exceeds that specified in the ssh server authentication-retries command.Configuring the device as an SSH clientSpecifying a source IP address/interface for the SSH clientThis configuration task allows you to specify a source IP address or interface for the client toaccess the SSH server, improving service manageability.To do… Use the command… Remarks1. Enter system view system-view —2. Specify asource IPaddress orinterfacefor the SSHclientSpecify a sourceIPv4 address orinterface for theSSH clientssh client source { ip ip-address |interface interface-type interface-number }RequiredBy default, theaddress of theinterface decided bythe routing is usedto access the SSHserverSpecify a sourceIPv6 address orinterface for theSSH clientssh client ipv6 source { ipv6 ipv6-address| interface interface-type interface-number }Configuring whether first-time authentication is supportedWhen the switch connects to the SSH server as an SSH client, you can configure whether theswitch supports first-time authentication.• With first-time authentication, when an SSH client not configured with the server host publickey accesses the server for the first time, the user can continue accessing the server, and savethe host public key on the client. When accessing the server again, the client will use thesaved server host public key to authenticate the server.• Without first-time authentication, a client not configured with the server host public key willdeny to access the server. To access the server, a user must configure in advance the serverhost public key locally and specify the public key name for authentication.Enable the device to support first-time authenticationFollow these steps to enable the switch to support first-time authentication:To do... Use the command… Remarks1. Enter system view system-view —