[NTLUG:Discuss] SSH file copying.

terry linux at cowtown.net
Fri Mar 28 13:59:52 CST 2003


Pervaz Allaudin wrote:

> How does one copy files between machines to which one is connected via 
> SSH.
>
> The regular cp  dirpath/filename at machine_name . does not seem to work.
>
> Thanks
> Pervaz
>
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
>
> .
>
scp hostname.or.ipaddress:/usr/share/file.name .
copies file from remote machine to current direcrory
or
scp file.name hostname.or.ipaddress:/usr/share/
copies file from current directory to /usr/share of remote machine

( where file.name is name of target file)
&
( where hostname.or.ipdress is a hostname or ipaddress of remote machine.)

You will be asked to supply username password before transaction takes 
place.


-- 
Registered Linux User #188099
<><






More information about the Discuss mailing list