0

I am trying to copy files from a ubuntu machine(with IP 10.46.57.44) on to current directory on my ubuntu VMware player using following command but the command doesnt look right? can anyone suggest what is the right command?

scp [email protected]:/local/mnt/workspace/kernel_db/new/linux-headers-3.10.0+_3.10.0+-10.00.Custom_i386.deb

2 Answers2

1

If you type scp you will see this:

usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2

So, correct syntax is scp file/to/copy [email protected]:/where/to/copy/

But, to use scp you need to make sure that ssh server is working on host machine. You can try that with simple ssh [email protected] where 0.0.0.0 is IP address where you want to connect.

10robinho
  • 346
  • 2
  • 9
0

For example,

scp [email protected]:/local/mnt/workspace/kernel_db/new/linux-headers-3.10.0+_3.10.0+-10.00.Custom_i386.deb <destionation>

scp [email protected]:/local/mnt/workspace/kernel_db/new/linux-headers-3.10.0+_3.10.0+-10.00.Custom_i386.deb [email protected]:/destination_folder

HTH!

BDRSuite
  • 3,156
  • 1
  • 12
  • 11