![]() |
Copying files from host onto my computer using ssh
Hi,
I have ssh'ed into a remote computer. I want to transfer a file from that computer onto my computer. I know how to do exactly the opposite (using scp) What would be the syntax for doing this? Any help would be greatly appreciated Thanks! Best, Adwait |
the opposite as in copy from your computer to the remote one? Just change the options around on the scp command line like you would do for any other file copy command:
scp file.txt user@server:file.txt |
Hi Chris,
Thanks for the reply! So in this case, file.txt is the file on the server that I want to copy? There are two file.txt what should each one of them be? Thanks! Quote:
|
Quote:
Code:
rsync -avH -e ssh --progress localfilename user@remoteserver:/fullpath_on_remote |
why would you use rsync just for that? Quite some overkill no?
|
Quote:
Frankly speak I have no idea about the differences between them, or maybe its security issue ? |
no, it's not like rsync. it's like cp, but with a bit of remote connectivity thrown in too.
|
| All times are GMT -5. The time now is 01:24 AM. |