General NAS-Central Forums

Welcome to the NAS community
It is currently Wed Aug 23, 2017 3:53 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: using scp
PostPosted: Fri Oct 19, 2012 11:00 pm 
Offline

Joined: Tue Feb 15, 2011 12:01 am
Posts: 12
Tried to use scp in folder:
/home/PUBLIC/.pkg/Sshd/bin/

When using scp, i get the error:
/usr/bin/dbclient: No such file or directory
lost connection

I am able to find dbclient in folder
/home/PUBLIC/.pkg/Sshd/bin/

Added the path to dbclient in env file /etc/profile (do logout/login after the change)

Can run now scp direct from command line, but still i get the error.

I want to copy files between a NAS without a inter-mediating host (without using a Windows PC copying files from NAS1 to NAS2).


Top
 Profile  
 
 Post subject: Re: using scp
PostPosted: Sat Oct 20, 2012 9:03 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6023
And that has to be done through an ssh tunnel? If not you could use and FTP serrver and wget. That is without doubt the fastest solution.

If you need a tunnel (for transfers over internet, for instance) you can also use the tunnel option of ssh:
Code:
tar cz /path/to/source | ssh user@<other-nas-ip> "dd | tar -C /path/to/target xz"
Preferably with a login-less connection. This way your data is compressed before it's encrypted, and because gzip compression in most cases is cheaper than ssh encryption, this will give a higher throughput/lower cpu load.


Top
 Profile  
 
 Post subject: Re: using scp
PostPosted: Sun Oct 21, 2012 12:07 am 
Offline

Joined: Tue Feb 15, 2011 12:01 am
Posts: 12
Encryption is not needed. Will try out your suggestions, forgot about wget.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group