H3C Technologies H3C S5120 Series Switches User Manual

Page 478

Advertising
background image

i

Table of Contents

1 SSH2.0 Configuration································································································································1-1

SSH2.0 Overview····································································································································1-1

Introduction to SSH2.0 ····················································································································1-1

Operation of SSH ····························································································································1-1

Configuring the Device as an SSH Server······························································································1-4

SSH Server Configuration Task List································································································1-4

Generating a DSA or RSA Key Pair ································································································1-4

Enabling the SSH Server Function··································································································1-5

Configuring the User Interfaces for SSH Clients·············································································1-5

Configuring a Client Public Key·······································································································1-6

Configuring an SSH User ················································································································1-7

Setting the SSH Management Parameters ·····················································································1-9

Configuring the Device as an SSH Client ·······························································································1-9

SSH Client Configuration Task List ·································································································1-9

Specifying a Source IP address/Interface for the SSH Client ·······················································1-10

Configuring Whether First-time Authentication is Supported ························································1-10

Establishing a Connection Between the SSH Client and the Server ············································1-11

Displaying and Maintaining SSH···········································································································1-11

SSH Server Configuration Examples····································································································1-12

When Switch Acts as Server for Password Authentication ···························································1-12

When Switch Acts as Server for Publickey Authentication ···························································1-14

SSH Client Configuration Examples ·····································································································1-18

When Switch Acts as Client for Password Authentication ····························································1-18

When Switch Acts as Client for Publickey Authentication·····························································1-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

Advertising