The file on the remote server is downloaded.
–
Run:
put
local-filename
[
remote-filename
]
The local file is uploaded to the remote server.
–
Run:
rmdir
remote-directory
&<1-10>
The file on the server is removed.
----End
6.4.8 Checking the Configuration
After performing file operations by using SFTP, you can view SSH user information and global
configurations of the SSH server.
Prerequisite
The configuration of SSH Users are complete.
Procedure
l
Run the
display ssh user-information
username
command to check the information about
the SSH client on the SSH server.
l
Run the
display ssh server status
command on the SSH server to check its global
configurations.
l
Run the
display ssh server session
command on the SSH server to check information about
connection sessions with SSH clients.
----End
Example
Run the
display ssh user-information
username
command. It shows that the SSH user named
clinet001
is authenticated by
password
, and its service type is
sftp
.
[Huawei]
display ssh user-information client001
-------------------------------------------------------------------------------
Username Auth-type User-public-key-name
-------------------------------------------------------------------------------
client001 password null
-------------------------------------------------------------------------------
If no SSH user is specified, information about all SSH users logging in to an SSH server will be
displayed.
Run the
display ssh server status
command to view configurations of an SSH server.
<Huawei>
display ssh server status
SSH version :
1.99
SSH connection timeout : 60 seconds
SSH server key generating interval : 2 hours
SSH Authentication retries :
5 times
SFTP Server : Enable
Huawei AR2200 Series Enterprise Routers
Configuration Guide - Basic Configuration
6 Managing File System
Issue 02 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
104