Page 1 of 1

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

Posted: Wed Feb 15, 2017 7:50 am
by huard
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!

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

Posted: Wed Feb 15, 2017 9:22 am
by jakematic
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

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

Posted: Wed Feb 15, 2017 1:55 pm
by huard
Yes, SSH is enabled.

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

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

Posted: Wed Feb 15, 2017 5:12 pm
by Eric Stern
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

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

Posted: Thu Feb 16, 2017 3:32 pm
by huard
It's works very well.

Thanks.

Olivier