Copying file from another machine with scp and smbclient
I have following computers:
1. Home: Linux machine
2. Work: Linux ssh server
3. Work: Windows share
I can log on machine 2 from home:
ssh user@machine2 ;
copy the file from machine 3:
smbclient //machine3/path/to/file "" -c "get myfile"
and get it to my home machine:
^D
scp user@machine2:/home/user/myfile .
Is there the way to get this file using one command or script?
Thank you in advance for your answers.
Last edited by SibBear; 06-02-2012 at 07:21 AM.
|