Labnario Com(5)

5
how to manage les through SCP on Huawei Posted in How To SCP SCP is a secure le transfer, based on SSH2.0, which supports downloading and uploading les between SCP client and server, in batches as well. If you would like to know more, just visit Huawei support website. I will focus on practice and show this feature, using simple lab: Congure communication between loopback interfaces of the server and the client. Below the SCP_server as an example. As this is a simple topology, I used RIP RIP protocol for communication (long unused by me): # sysname SCP_server # vlan batch 100 # interface Vlanif100 ip address 10.1.1.1 255.255.255.0 # interface MEth0/0/1 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 100 # interface LoopBack0 ip address 1.1.1.1 255.255.255.255 # rip 1 network 10.0.0.0 network 1.0.0.0 # Conguration of SCP_server: 13 Jul 2015 converted by Web2PDFConvert.com

description

eNSP lab

Transcript of Labnario Com(5)

Page 1: Labnario Com(5)

how to manage les through SCP on HuaweiPosted in How To …

SCPSCP is a secure le transfer, based on SSH2.0, which supports downloading and uploading les between SCP client and server, in batches as well. If youwould like to know more, just visit Huawei support website. I will focus on practice and show this feature, using simple lab:

Con gure communication between loopback interfaces of the server and the client. Below the SCP_server as an example. As this is a simple topology, Iused RIPRIP protocol for communication (long unused by me):

#sysname SCP_server#vlan batch 100#interface Vlanif100 ip address 10.1.1.1 255.255.255.0#interface MEth0/0/1#interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 100#interface LoopBack0 ip address 1.1.1.1 255.255.255.255#rip 1 network 10.0.0.0 network 1.0.0.0#

Con guration of SCP_server:

13 Jul

2015

converted by Web2PDFConvert.com

Page 2: Labnario Com(5)

[SCP_server]scp server enable Info: Succeeded in starting the SCP server.

[SCP_server]rsa local-key-pair createThe key name will be: SCP_server_HostThe range of public key size is (512 ~ 2048). NOTES: If the key modulus is greater than 512, it will take a few minutes.Input the bits in the modulus[default = 512]:Generating keys............++++++++++++...................++++++++++++.....++++++++...................................................++++++++

SCP_server]user-interface vty 0 4[SCP_server-ui-vty0-4]authentication-mode aaa[SCP_server-ui-vty0-4]protocol inbound ssh

[SCP_server]aaa[SCP_server-aaa]local-user labnario password cipher labnarioInfo: Add a new user.[SCP_server-aaa]local-user labnario service-type ssh[SCP_server-aaa]local-user labnario privilege level 15

[SCP_server]ssh user labnario authentication-type passwordInfo: Succeeded in adding a new SSH user.[SCP_server]ssh user labnario service-type all

Coniguration of SCP_client:

[SCP_client]scp client-source -a 2.2.2.2 [SCP_client]ssh client first-time enable

Let's check file system of SCP_server:

<SCP_server>dirDirectory of flash:/

Idx Attr Size(Byte) Date Time FileName 0 drw- - Jul 13 2015 11:15:03 src 1 drw- - Jul 13 2015 11:15:14 compatible 2 -rw- 1,909 Jul 13 2015 13:47:02 new_file.cfg

Now we can download the new_file.cfg from the remote SCP server:

[SCP_client]scp -a 2.2.2.2 -cipher 3des [email protected]:new_file.cfg new_file.cfgTrying 1.1.1.1 ...Press CTRL+K to abortConnected to 1.1.1.1 ...The server is not authenticated. Continue to access it? [Y/N] :ySave the server's public key? [Y/N] :yThe server's public key will be saved with the name 1.1.1.1. Please wait...

Enter password:

new_file.cfg 0% 0Bytes 1Kb/snew_file.cfg 100% 1909Bytes 2Kb/s

Let's check whether the file has been downloaded:

<SCP_client>dirDirectory of flash:/

Idx Attr Size(Byte) Date Time FileName 0 drw- - Jul 13 2015 11:15:03 src 1 drw- - Jul 13 2015 11:15:14 compatible 2 -rw- 1,909 Jul 13 2015 16:00:22 new_file.cfg

converted by Web2PDFConvert.com

Page 3: Labnario Com(5)

Now we can rename this file and upload it to SCP serve rSCP serve r :

<SCP_client>rename new_file.cfg quite_new_file.cfgRename flash:/new_file.cfg to flash:/quite_new_file.cfg ?[Y/N]:yInfo: Rename file flash:/new_file.cfg to flash:/quite_new_file.cfg ......Done.

<SCP_client>system-view Enter system view, return user view with Ctrl+Z.

[SCP_client]scp -a 2.2.2.2 -cipher 3des quite_new_file.cfg [email protected]:Trying 1.1.1.1 ...Press CTRL+K to abortConnected to 1.1.1.1 ...Enter password:

quite_new_file.cfg 0% 0Bytes 1Kb/squite_new_file.cfg 100% 1909Bytes 2Kb/s

And finally check the result on SCP server:

<SCP_server>dirDirectory of flash:/

Idx Attr Size(Byte) Date Time FileName 0 drw- - Jul 13 2015 11:15:03 src 1 drw- - Jul 13 2015 11:15:14 compatible 2 -rw- 1,909 Jul 13 2015 16:05:08 quite_new_file.cfg 2 -rw- 1,909 Jul 13 2015 13:47:02 new_file.cfg

Tags: Huawei S5700, SCP, secure transfer

converted by Web2PDFConvert.com

Page 4: Labnario Com(5)

Powered by Komento

Submit CommentSubmit Comment

COMMENTS

No comme nts foundNo comme nts found

LEAVE YOUR COMMENTS

Post comment as a guest

Your comments are subjected to administrator's moderation.

Sort by Oldest First Sort by Latest First

Login to post a comment

Login Remember me

Register Forgot password

Name (Required):

Email:

Website:

0

Agree to terms and condition.

CategoriesBasic Con gurationCheat Sheets

Username Password

converted by Web2PDFConvert.com