H3C Technologies H3C WX3000E Series Wireless Switches User Manual

Page 328

Advertising
background image

314

[AC2-ui-vty0-4] authentication-mode scheme

# Enable the user interfaces to support SSH.

[AC2-ui-vty0-4] protocol inbound ssh

[AC2-ui-vty0-4] quit

# Create local user client001.

[AC2] local-user client001

[AC2-luser-client001] password simple aabbcc

[AC2-luser-client001] authorization-attribute level 3

[AC2-luser-client001] service-type ssh

[AC2-luser-client001] quit

# Configure the AC to authenticate SSH users by using password authentication and provide SFTP

services.

[AC2] ssh user client001 service-type sftp authentication-type password

NOTE:

To use publickey authentication, configure the public key of AC 1 on AC 2. For configuration steps, see
"

Configuring SSH2.0

."

# Enable the SFTP server.

[AC2] sftp server enable

2.

Configure the client (AC 1):
# Configure an IP address for VLAN-interface 2.

<AC1> system-view

[AC1] interface vlan-interface 2

[AC1-Vlan-interface2] ip address 192.168.0.2 255.255.255.0

[AC1-Vlan-interface2] quit

[AC1] quit

# Establish a connection with the remote SFTP server and enter SFTP client view.

<AC1> sftp 192.168.0.1

Input Username: client001

Trying 192.168.0.1 ...

Press CTRL+K to abort

Connected to 192.168.0.1 ...

The Server is not authenticated. Continue? [Y/N]:y

Do you want to save the server public key? [Y/N]:n

Enter password:

<sftp-client>

# Display files under the current directory of the server, delete file z, and check that the file has

been deleted successfully.

<sftp-client> dir

-rwxrwxrwx 1 noone nogroup 1759 Aug 23 06:52 startup.cfg

-rwxrwxrwx 1 noone nogroup 225 Aug 24 08:01 pubkey2

-rwxrwxrwx 1 noone nogroup 283 Aug 24 07:39 pubkey1

drwxrwxrwx 1 noone nogroup 0 Sep 01 06:22 new

-rwxrwxrwx 1 noone nogroup 225 Sep 01 06:55 pub

Advertising