2-5Terminating the Connection to the Remote SFTP ServerFollow these steps to terminate the connection to the remote SFTP server:To do… Use the command… RemarksEnter SFTP client viewsftp [ ipv6 ] server [ port-number ][ identity-key { dsa | rsa } |prefer-ctos-cipher { aes128 | des } |prefer-ctos-hmac { md5 | md5-96 | sha1 |sha1-96 } | prefer-kex { dh-group-exchange |dh-group1 | dh-group14 } |prefer-stoc-cipher { aes128 | des } |prefer-stoc-hmac { md5 | md5-96 | sha1 |sha1-96 } ] *RequiredExecute the command in userview.byeexitTerminate theconnection to theremote SFTP serverand return to user view quitRequired.Use any of the commands.These three commands function inthe same way.SFTP Client Configuration ExampleNetwork requirementsAs shown in Figure 2-1, an SSH connection is established between Switch A and Switch B. Switch A, anSFTP client, logs in to Switch B for file management and file transfer. An SSH user uses publickeyauthentication with the public key algorithm being RSA.Figure 2-1 Network diagram for SFTP client configurationConfiguration procedureDuring SFTP server configuration, the client public key is required. Therefore, you are recommended touse the client software to generate an RSA key pair on the client before configuring the SFTP server.1) Configure the SFTP client# Create VLAN interface 1 and assign an IP address to it. system-view[SwitchA] interface vlan-interface 1[SwitchA-Vlan-interface1] ip address 192.168.0.2 255.255.255.0[SwitchA-Vlan-interface1] quit# Generate an RSA key pair.[SwitchA] public-key local create rsa# Export the host public key to file pubkey.[SwitchA] public-key local export rsa ssh2 pubkey