using scp

MD-253 & MD-500 Discussion
Post Reply
nanocool
Posts: 12
Joined: Tue Feb 15, 2011 12:01 am

using scp

Post by nanocool » Fri Oct 19, 2012 11:00 pm

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).

Mijzelf
Posts: 6224
Joined: Mon Jun 16, 2008 10:45 am

Re: using scp

Post by Mijzelf » Sat Oct 20, 2012 9:03 am

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: Select all

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.

nanocool
Posts: 12
Joined: Tue Feb 15, 2011 12:01 am

Re: using scp

Post by nanocool » Sun Oct 21, 2012 12:07 am

Encryption is not needed. Will try out your suggestions, forgot about wget.

Post Reply