terminal - How do I use scp to copy a file from the server to the client side ? -
how transfer files computer accessing remotely computer i'm at?
can me?
here's syntax know far,
scp (filename) (i don't know put here): (location on computer)
if computer internet accessible, - hacky - should work;
scp (filename) `echo $ssh_client | awk '{print $1}'`:(location on computer)
the easier way (that work) do scp new window on local computer instead;
scp (remote computer):path/to/remote/file (location on local computer)
remote computer
being same address ssh to.
as example, if file on remote computer called remotecomputer.com
in subdirectory of home directory called important
, file called test.txt
, can issue command on local computer copy current directory on local computer;
scp remotecomputer.com:important/test.txt .
Comments
Post a Comment