can the NAS DOWNLOAD files via SFTP ?

FTP Server, File Server, DDNS, SAMBA, AFP, NFS
McCloud
Starting out
Posts: 11
Joined: Tue Apr 05, 2016 7:32 pm
Model: TS-459 Pro+

can the NAS DOWNLOAD files via SFTP ?

Postby McCloud » Tue Feb 14, 2017 8:59 pm

Hey,

the Telnet/SSH option allows me to connect TO the NAS.

Does it work the 'other way' round ?

Is the NAS able to reach to a server / domain and DOWNLOAD files from it (and save them) via SFTP ?

We need to perform automated backups and download files from a server on the internet.

Or does it need to be configured from the other end, so that the server reaches the NAS via SSH and 'uploads' the backups to it automatically ?

Thanks!

User avatar
OneCD
Experience counts
Posts: 1590
Joined: Sun Aug 21, 2016 10:48 am
Model: TS-x69 Pro
Location: over there, behind that sofa...

Re: can the NAS DOWNLOAD files via SFTP ?

Postby OneCD » Wed Feb 15, 2017 1:20 am

McCloud wrote:the Telnet/SSH option allows me to connect TO the NAS.

Does it work the 'other way' round ?

It sure does! :geek:
Stuff I like: Apache automation BASH blocklists BTFS BusyBox CLI CouchPotato CRON CSS DD-WRT DNS DNSMasq Entware-ng EXT2/3/4 FireFox GitHub HTML ImageMagick IP-networking KDE Kodi L2TP/IPsec LibreELEC Linux LXDE Linux Mint NAS Netrunner NFS OpenSUSE Orvibo S20 P2P phpMyAdmin Python Raspberry Pi RAID remote-access rsync SABnzbd+ screen scripts shell Shuttle SickBeard SQL SQLite SSD SSH Transmission Ubuntu UPS Usenet VirtualBox VPN web-servers WiFi WordPress XFCE XFS XML

McCloud
Starting out
Posts: 11
Joined: Tue Apr 05, 2016 7:32 pm
Model: TS-459 Pro+

Re: can the NAS DOWNLOAD files via SFTP ?

Postby McCloud » Wed Feb 15, 2017 3:58 pm

would I need to connect via SSH (and terminal on Mac) and configure it via commands ?

I got something like this:
wget -m ftp://<domain>/* --user='<username>' --password='<password>'

User avatar
OneCD
Experience counts
Posts: 1590
Joined: Sun Aug 21, 2016 10:48 am
Model: TS-x69 Pro
Location: over there, behind that sofa...

Re: can the NAS DOWNLOAD files via SFTP ?

Postby OneCD » Thu Feb 16, 2017 2:53 am

McCloud wrote:would I need to connect via SSH (and terminal on Mac) and configure it via commands ?

Yes, unless you could create a backup job in Backup Station to do this.

McCloud wrote:I got something like this:
wget -m ftp://<domain>/* --user='<username>' --password='<password>'

That may work but I can't check it. ;)

Here's a guide that may be useful for creating an SFTP connection.

To install the sftp binary, you'll first need to install the Entware-ng QPKG.

Then you can install sftp:

Code: Select all

opkg update; opkg install openssh-sftp-client

If your downloads will take a while, I suggest you use screen. This way, you can disconnect your SSH session and reconnect to it later.
Stuff I like: Apache automation BASH blocklists BTFS BusyBox CLI CouchPotato CRON CSS DD-WRT DNS DNSMasq Entware-ng EXT2/3/4 FireFox GitHub HTML ImageMagick IP-networking KDE Kodi L2TP/IPsec LibreELEC Linux LXDE Linux Mint NAS Netrunner NFS OpenSUSE Orvibo S20 P2P phpMyAdmin Python Raspberry Pi RAID remote-access rsync SABnzbd+ screen scripts shell Shuttle SickBeard SQL SQLite SSD SSH Transmission Ubuntu UPS Usenet VirtualBox VPN web-servers WiFi WordPress XFCE XFS XML

McCloud
Starting out
Posts: 11
Joined: Tue Apr 05, 2016 7:32 pm
Model: TS-459 Pro+

Re: can the NAS DOWNLOAD files via SFTP ?

Postby McCloud » Fri Feb 17, 2017 6:07 pm

perfect, thanks!

That's some really good info. The Backup Station and RTRR is probably what I was looking for the whole time :)


Return to “File Sharing”

Who is online

Users browsing this forum: No registered users and 2 guests