You are not logged in.

#1 2009-06-13 09:00:10

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,000
Website

[Solved] sftp-like with directories support?

Often when I need to pull data quickly from one box to another i use sftp (because i have ssh configured, but no ftp/nfs/...)
However sftp does not support directories, so what i usually do is (If i don't know the exact path/filenames):
1) ssh to box
2) cd to the right path and put it in my selection buffer
3) logout
4) scp -rp <box>:<path> .


Which is of course, not all that efficient.
Is there a way to do directory transfers with sftp?  directory tab completion would be useful too.

Last edited by Dieter@be (2009-06-13 12:16:48)


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#2 2009-06-13 09:07:46

vit
Member
Registered: 2008-12-28
Posts: 79

Re: [Solved] sftp-like with directories support?

the simpliest way, for me, to use GUI sftp client. I think nautilus in grome and dolphin in kde4 can do that.

Last edited by vit (2009-06-13 11:17:37)

Offline

#3 2009-06-13 10:53:12

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [Solved] sftp-like with directories support?

A lot of GUI FTP clients support SFTP operations as well. I use FileZilla for it - for single file or small operations I use the method you described too smile.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2009-06-13 11:49:51

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,000
Website

Re: [Solved] sftp-like with directories support?

aha, so i guess i should just look out for a better (cli) sftp client that supports this. (some of my boxes are headless)


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#5 2009-06-13 12:04:20

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [Solved] sftp-like with directories support?

Something in bash-completion seems to do tab completion for scp.

You can do wildcards too, just escape it so bash doesnt read it.

scp -r desktop:mus\* ./oldmusic

Hope that helps.

Last edited by iphitus (2009-06-13 12:07:32)

Offline

#6 2009-06-13 12:08:42

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [Solved] sftp-like with directories support?

Dieter@be wrote:

aha, so i guess i should just look out for a better (cli) sftp client that supports this. (some of my boxes are headless)

As long as it's the server there is no problem is it tongue.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#7 2009-06-13 12:11:14

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [Solved] sftp-like with directories support?

Take a look at sshfs too. I've found that to be very useful when transferring many files over ssh. It's available in extra.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#8 2009-06-13 12:16:17

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,000
Website

Re: [Solved] sftp-like with directories support?

iphitus wrote:

Something in bash-completion seems to do tab completion for scp.

You can do wildcards too, just escape it so bash doesnt read it.

scp -r desktop:mus\* ./oldmusic

Hope that helps.

Well, this is actually a great alternative for sftp.  Thanks smile


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#9 2009-06-13 12:21:24

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [Solved] sftp-like with directories support?

Xyne wrote:

Take a look at sshfs too. I've found that to be very useful when transferring many files over ssh. It's available in extra.

Indeed... I don't know how I forgot that. I used NFS before to map my server's data to my laptop but now it's just sshfs smile. Quite easy. If you cache your SSH keys you can mount them easily (that is, with fstab fiddling and some pipe menu magic in Openbox <3).


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB