Hello. I need to copy several file from one PC to another over Internet, both using CentOS. What file manager that works over console do you recommend me? Thanks at all Best Regards
On Sun, Aug 17, 2008 at 11:19 AM, Linux Man linuxman.uru@gmail.com wrote:
Hello. I need to copy several file from one PC to another over Internet, both using CentOS. What file manager that works over console do you recommend me? Thanks at all Best Regards _______________________________________________
scp is the easiest in this regard. It runs over SSH, so your data is secure - especially if it's over the open internet.
The commands are as follows: scp user1@otherhost:/home/user1/myfile .
This assumes user1 is a user on that machine, and has SSH access. The file /home/user1/myfile will be copied to the current folder - denoted by the dot ( . )
Rudi Ahlers wrote:
scp is the easiest in this regard. It runs over SSH, so your data is secure - especially if it's over the open internet.
The commands are as follows: scp user1@otherhost:/home/user1/myfile .
...
and in fact, if /home/user1 is user1@otherhost's home directory, that can be shortened to...
$ scp user1@otherhost:myfile .
you can also copy the other way...
$ scp myfile user1@otherhost:.
which would put it in user1@otherhost's home directory... or...
$ scp -R . user1@otherhost:/remote/path
would copy ALL files and subdirectories from the current directory to /remote/path on otherhost...
`man scp` for lots more options...
Thanks for your help. Yes, I used scp several time and still using it :) But in this case there's a lot of file in different directories, so I need a tool like mc (I don't know if mc runs always over ssh) What file manager that works over console do you recommend me? Thanks at all Best Regards
2008/8/17 Rudi Ahlers rudiahlers@gmail.com:
On Sun, Aug 17, 2008 at 11:19 AM, Linux Man linuxman.uru@gmail.com wrote:
Hello. I need to copy several file from one PC to another over Internet, both using CentOS. What file manager that works over console do you recommend me? Thanks at all Best Regards _______________________________________________
scp is the easiest in this regard. It runs over SSH, so your data is secure
- especially if it's over the open internet.
The commands are as follows: scp user1@otherhost:/home/user1/myfile .
This assumes user1 is a user on that machine, and has SSH access. The file /home/user1/myfile will be copied to the current folder - denoted by the dot ( . )
--
Kind Regards Rudi Ahlers
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Linux Man wrote:
Thanks for your help. Yes, I used scp several time and still using it :) But in this case there's a lot of file in different directories, so I need a tool like mc (I don't know if mc runs always over ssh) What file manager that works over console do you recommend me? Thanks at all Best Regards
fuse+sshfs ( wiki.centos.org has details ) - then 'mc' locally.
On Sun, Aug 17, 2008 at 4:10 AM, Karanbir Singh mail-lists@karan.org wrote:
Linux Man wrote:
Thanks for your help. Yes, I used scp several time and still using it :) But in this case there's a lot of file in different directories, so I need a tool like mc (I don't know if mc runs always over ssh) What file manager that works over console do you recommend me? Thanks at all Best Regards
fuse+sshfs ( wiki.centos.org has details ) - then 'mc' locally.
sshfs is indeed a handy way to access remote filesystems through ssh. But I do not see any details on the CentOS wiki. Here's a brief instruction:
# yum install dkms-fuse fuse fuse-sshfs # depmod -a ; modprobe fuse $ mkdir localdir/ $ sshfs remoteuser@remotebox:/some/path localdir/
To unmount:
$ fusermount -u localdir/
Note that you do not have to be root to mount/umount using sshfs.
Another option is to use gftp. After you start it, just select "SSH2" instead of the default "FTP". Then you will be connecting through ssh (remote does not need ftp daemon running) and you get an mc-like session quite easily.
Akemi
Akemi Yagi wrote:
# yum install dkms-fuse fuse fuse-sshfs # depmod -a ; modprobe fuse $ mkdir localdir/ $ sshfs remoteuser@remotebox:/some/path localdir/
i thought there was something in the wiki on this... humm anyway, one thing you missed is the usermod to get that user into the fuse group.
Linux Man wrote:
Hello. I need to copy several file from one PC to another over Internet, both using CentOS. What file manager that works over console do you recommend me? Thanks at all Best Regards
If the client is running X, then konqueror using the fish protocol (fish://user@ip-address/) supports transfers over ssh, and gftp supports the ssh2 protocol too.
Ned
On Sun, Aug 17, 2008 at 6:19 AM, Ned Slider ned@unixmail.co.uk wrote:
Linux Man wrote:
Hello. I need to copy several file from one PC to another over Internet, both using CentOS. What file manager that works over console do you recommend me? Thanks at all Best Regards
If the client is running X, then konqueror using the fish protocol (fish://user@ip-address/) supports transfers over ssh
In fact, midnight commander supports fish. I just tried and it worked. Use this format:
cd /#sh:remoteuser@remotemachine/
Akemi
On Sun, 17 Aug 2008, Linux Man wrote:
Hello. I need to copy several file from one PC to another over Internet, both using CentOS. What file manager that works over console do you recommend me? Thanks at all Best Regards
You've got a lot of good suggestions already but sftp is also a good one. Very similar to ftp but over ssh.
-- Mike
Mike wrote:
I need to copy several file from one PC to another over Internet, both using CentOS. What file manager that works over console do you recommend me? Thanks at all Best Regards
You've got a lot of good suggestions already but sftp is also a good one. Very similar to ftp but over ssh.
Rsync is even better, especially if you are updating files that already exist or are taking a whole subdirectory but even if not, the syntax is similar to scp and lets you add -z for compression.
Thanks too all for you help, works great! Best regards
2008/8/17 Les Mikesell lesmikesell@gmail.com:
Mike wrote:
I need to copy several file from one PC to another over Internet, both using CentOS. What file manager that works over console do you recommend me? Thanks at all Best Regards
You've got a lot of good suggestions already but sftp is also a good one. Very similar to ftp but over ssh.
Rsync is even better, especially if you are updating files that already exist or are taking a whole subdirectory but even if not, the syntax is similar to scp and lets you add -z for compression.
-- Les Mikesell lesmikesell@gmail.com
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos