![H3C S5120-SI Series Operation Manual Download Page 446](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_operation-manual_3711174446.webp)
i
Table of Contents
1 SSH2.0 Configuration································································································································2-1
SSH2.0 Overview····································································································································2-1
Introduction to SSH2.0 ····················································································································2-1
Operation of SSH ····························································································································2-1
Configuring the Device as an SSH Server······························································································2-4
SSH Server Configuration Task List································································································2-4
Generating a DSA or RSA Key Pair ································································································2-4
Enabling SSH Server·······················································································································2-5
Configuring the User Interfaces for SSH Clients·············································································2-5
Configuring a Client Public Key·······································································································2-6
Configuring an SSH User ················································································································2-7
Setting the SSH Management Parameters ·····················································································2-9
Configuring the Device as an SSH Client ·······························································································2-9
SSH Client Configuration Task List ·································································································2-9
Specifying a Source IP address/Interface for the SSH client ························································2-10
Configuring Whether First-time Authentication is Supported ························································2-10
Establishing a Connection Between the SSH Client and the Server ············································2-11
Displaying and Maintaining SSH···········································································································2-11
SSH Server Configuration Examples····································································································2-12
When Switch Acts as Server for Password Authentication ···························································2-12
When Switch Acts as Server for Publickey Authentication ···························································2-14
SSH Client Configuration Examples ·····································································································2-18
When Switch Acts as Client for Password Authentication ····························································2-18
When Switch Acts as Client for Publickey Authentication·····························································2-21
2 SFTP Service··············································································································································2-1
SFTP Overview ·······································································································································2-1
Configuring an SFTP Server···················································································································2-1
Configuration Prerequisites ·············································································································2-1
Enabling the SFTP Server···············································································································2-1
Configuring the SFTP Connection Idle Timeout Period ··································································2-2
Configuring an SFTP Client ····················································································································2-2
Specifying a Source IP Address or Interface for the SFTP Client···················································2-2
Establishing a Connection to the SFTP Server···············································································2-2
Working with the SFTP Directories ·································································································2-3
Working with SFTP Files ·················································································································2-4
Displaying Help Information ············································································································2-4
Terminating the Connection to the Remote SFTP Server·······························································2-5
SFTP Client Configuration Example ·······································································································2-5
SFTP Server Configuration Example······································································································2-9