Connecting To Other Devices By Using Sftp; Operating Files By Using Sftp Commands - Huawei AR2200 Series Configuration Manual

Enterprise routers
Hide thumbs Also See for AR2200 Series:
Table of Contents

Advertisement

Huawei AR2200 Series Enterprise Routers
Configuration Guide - Basic Configuration
peer-public-key end
Return to the system view from the public key view.
----End

8.7.5 Connecting to Other Devices by Using SFTP

You can log in to the SSH server from the SSH client through SFTP.
Context
The command of enabling the SFTP client is similar to that of the STelnet. When accessing the
SSH server, the SFTP can carry the source address and the name of the VPN instance and choose
the key exchange algorithm, encrypted algorithm and HMAC algorithm, and configure the
keepalive function.
Do as follows on the router that serves as an SSH client.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
sftp [ -a source-address
[ [ public-net | -vpn-instance vpn-instance-name ] | [ prefer_kex { dh_group1 |
dh_exchange_group } ] | [ prefer_ctos_cipher { des | 3des | aes128 } ] |
[ prefer_stoc_cipher { des | 3des | aes128 } ] | [ prefer_ctos_hmac { sha1 |
sha1_96 | md5 | md5_96 } ] | [ prefer_stoc_hmac { sha1 | sha1_96 | md5 | md5_96 } ] ]
*
[ -ki aliveinterval [ -kc alivecountmax ] ]
You can log in to the SSH server through SFTP.
----End

8.7.6 Operating Files by Using SFTP Commands

You can manage directories and files on the SSH server from the SFTP client, and check the
command help on the SFTP client.
Context
After logging in to the SSH server from the SFTP client, you can perform the following
operations on the SFTP client:
l
l
l
After logging in to the router that functions as an SSH client and entering the SFTP client view,
you can perform the following steps:
Issue 02 (2011-10-15)
Create or delete a directory on the SSH server, and display the current working directory,
the specified directory and information about the file in the specified directory.
Change a file name, delete a file, display a file list, and upload or download a file.
Displaying the SFTP client command help.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
| -i interface-type interface-number ] host-ipv4 [ port ]
8 Accessing Another Device
150

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents