transfering files through ssh
* * * 1 votos
August 28th, 2006 mysurface Posted in Admin, scp | Hits: 5787 |
As long as you can access a site with ssh account, then you can transfer files using scp, try to imagine , you are from host A and you have access to host B through ssh with same user account call foobar. You can copy a file from host B by example as bellow
scp foobar@hostB:~/myfile.txt .
:~/ actually leads you to home directory of foobar, as long as the file is accessible by the account foobar in host B, than it can be transfer. The other way round is transfer file from host A to host B.
scp myfile.txt foobar@hostB:~/
It support to copy a folder from one host to another by adding option -r
scp -r foobar@hostB:~/myfolder .
Copy from one host to another with different ssh account.
scp foobar@hostB:~/myfile.txt root@hostF:~/
Live Chat!









August 28th, 2006 at 1:27 am
[...] If you want to transfer one or few files which you have know the location, scp would be enough. SCP example will be here. But if do not know the location of the file, and you want to login to browse the directories? consider sftp. Login to sftp is like login to ssh, sftp foobar@192.167.8.9 [...]
January 28th, 2007 at 9:42 am
[...] zssh, ZModem ssh, an alternative way to ssh and scp? To perform file transfer and ssh in ordinary way you need ssh and scp. [...]