Use SCP for export/import on Netonix WS-6-MINI

DOWNLOAD THE LATEST FIRMWARE HERE
User avatar
huard
Member
 
Posts: 3
Joined: Mon Jan 09, 2017 5:26 pm
Location: France
Has thanked: 1 time
Been thanked: 0 time

Use SCP for export/import on Netonix WS-6-MINI

Wed Feb 15, 2017 7:50 am

Hi All,
I'm sorry, it's an easy question, but I don't understand how I can connect to the Netonix WS-6-MINI with SCP :tinhat:

I want to use the freeware WinSCP with this parameters:
host: 192.168.1.20
port: 22
username: admin
password: admin
protocol: scp

WinSCP start to connect on the switch and it disconnect.

My goal is export the backup file (/tmp/wispswitch_config.tar) to my computer, modify the file "config.json" and restore it with the command "php-cli config.php --restore /tmp/restore_config.tar"

Thanks for your help!

User avatar
jakematic
Experienced Member
 
Posts: 168
Joined: Thu Jul 14, 2016 8:15 am
Location: NC USA
Has thanked: 362 times
Been thanked: 87 times

Re: Use SCP for export/import on Netonix WS-6-MINI

Wed Feb 15, 2017 9:22 am

Is ssh enabled on the switch under Device -> Configuration ?

SSH.JPG



I can scp no problem, but do it from the command line:
Code: Select all
root@ubu:/Fedora/PoE# scp admin@ws12:/www/config.json config.json
admin@ws12's password:
config.json 100% 20KB 19.7KB/s 00:00

User avatar
huard
Member
 
Posts: 3
Joined: Mon Jan 09, 2017 5:26 pm
Location: France
Has thanked: 1 time
Been thanked: 0 time

Re: Use SCP for export/import on Netonix WS-6-MINI

Wed Feb 15, 2017 1:55 pm

Yes, SSH is enabled.

I can connect to the switch with putty. However not with WinSCP.

User avatar
Eric Stern
Employee
Employee
 
Posts: 532
Joined: Wed Apr 09, 2014 9:41 pm
Location: Toronto, Ontario
Has thanked: 0 time
Been thanked: 130 times

Re: Use SCP for export/import on Netonix WS-6-MINI

Wed Feb 15, 2017 5:12 pm

WinSCP won't work with the switch because it assumes it will get a shell prompt after connecting, but on the switch you get a CLI prompt instead of a shell prompt.

You'll need a command line scp client. I recommend pscp, which is part of the putty package.

http://www.chiark.greenend.org.uk/~sgta ... atest.html

User avatar
huard
Member
 
Posts: 3
Joined: Mon Jan 09, 2017 5:26 pm
Location: France
Has thanked: 1 time
Been thanked: 0 time

Re: Use SCP for export/import on Netonix WS-6-MINI

Thu Feb 16, 2017 3:32 pm

It's works very well.

Thanks.

Olivier

Return to Hardware and software issues

Who is online

Users browsing this forum: j2840fl and 38 guests