Re: sftp mount?

2003-11-10 Thread Jim Durham
On Friday 07 November 2003 09:27 am, Lewis Thompson wrote:
 Hi,

 I'm wondering if there might be any way to mount an sftp
 ``filesystem''? At my university everything is firewalled and the
 only way I can transfer files to/from my account is to use sftp --
 but that gets quite painful after a while.

   I was wondering if anybody knew a way I might achieve what could
 essentially be described as mounting an sftp ``export''?  Maybe I
 could specify an argument that sets the logical root?

   So:

 mount_sftp --root=/home/lewiz foo.bar.com /remote_home

 would provide /home/lewiz on foo.bar.com at /remote_host?  Is this
 possible in any way at all?  Or can anybody suggest any other way I
 might achieve something similar?  Bear in mind I am actually
 restricted to sftp/ssh.

Sorry, I didn't see this sooner...

I don't know if this is exactly what you want, but you can do this in 
KDE using the fish:// protocol, which is basically file sharing over 
ssh. You bring up the konqueror browser and do 
fish://[EMAIL PROTECTED] and it should pop open a GUI representation 
of your home directory on the server hostname. When you click on an 
editable file it will run an editor and it really downloads the file, 
edits it, then when you go to save it says something like This file 
is on a remote host, do you want to upload it? and you just click 
yes.

I haven't tried this will all different kinds of editors. The editors 
that come with the KDE desktop all work with this, but not sure about 
vi or emacs.

So, it's not exactly what you had in mind, but it works for me.
-- 
-Jim

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sftp mount?

2003-11-08 Thread Odhiambo Washington
* Lewis Thompson [EMAIL PROTECTED] [20031107 18:01]: wrote:
 On Fri, Nov 07, 2003 at 05:56:43PM +0300, Odhiambo Washington wrote:
  * Lewis Thompson [EMAIL PROTECTED] [20031107 17:28]: wrote:
   At my university everything is firewalled and the only way I can
   transfer files to/from my account is to use sftp -- but that gets quite
   painful after a while.
  
  What do you mean by quite painful? sftp should be very easy to use
 
 Yeah, it is fairly easy to use but it's still annoying to be doing it.
 In reality what I want is to edit the remote files directly.  I don't
 want to be copying back/forth.  It can't really be automated either,
 since I'm not doing the same task over and over.
 
  Basically you have to ask the folks administering your systems if they
  allow NFS and I doubt it already.
 
 No, they don't.  Pretty much the only thing allowed is ssh/sftp.
 
   Or can anybody suggest any other way I might achieve something similar?
   Bear in mind I am actually restricted to sftp/ssh.
  
  Forget your ideas. Tell us what it is that you want to be doing.
 
 I want my remote home directory (available just by ssh) to be
 transparently available from a local directory :P

I don't know how to do that via ssh, but I know how to execute commands
remotely via SSH:


ssh remote_host -t -A /usr/bin/ee /path/to/some/file


 

Best regards,
Odhiambo Washington
Wananchi Online Ltd.

PS::REQUEST

Q: Because it reverses the logical flow of conversation.
A: Why is top posting frowned upon?

http://learn.to/edit_messages
http://www.netmeister.org/news/learn2quote.html

--+-
 Odhiambo W. wash(at)wananchi(dot)com   . WANANCHI ONLINE LTD (Nairobi, KE)
 http://www.wananchi.com/email/ . 1ere Etage, Loita Hse, Loita St.,
 Mobile: (+254) 722 743 223 . # 10286, 00100 NAIROBI
--+-
What the hell, go ahead and put all your eggs in one basket.



Markets are self-correcting. That's why I trust markets more than
governments. Governments usually aren't self-correcting, until too late.
--Interview with Walter Wriston as reported in Wired 4.10
 



pgp0.pgp
Description: PGP signature


Re: sftp mount?

2003-11-08 Thread Lowell Gilbert
Odhiambo Washington [EMAIL PROTECTED] writes:

 * Lowell Gilbert [EMAIL PROTECTED] [20031108 05:32]: wrote:

  Copying a whole directory tree is pretty easy, especially with tool
  support, it's transparent while you're doing the editing, and you get
  full speed while you're editing.  That would be my recommendation.
 
 
 Please elaborate that for my benefit ;-)

I was being deliberately vague because there are *very* many ways of
doing that sort of thing.  One to which I had alluded earlier in the
message was using rdist to synchronize the working files between two
systems.  You would do that before (and possibly after) each time you
worked on the files.  This has the advantage that when you are
actually working on the files, you are always using local copies.

I haven't done it, but I understand that it is quite easy to run rdist
over ssh.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sftp mount?

2003-11-07 Thread Odhiambo Washington
* Lewis Thompson [EMAIL PROTECTED] [20031107 17:28]: wrote:
 Hi,
 
 I'm wondering if there might be any way to mount an sftp ``filesystem''?
 At my university everything is firewalled and the only way I can
 transfer files to/from my account is to use sftp -- but that gets quite
 painful after a while.

What do you mean by quite painful? sftp should be very easy to use, as
it uses the underlying ssh. All you have to do is automate the ftp
process. You can do this via a script run via your personal cron

Tell us what you want to achieve and well chip in with good ideas.

   I was wondering if anybody knew a way I might achieve what could
 essentially be described as mounting an sftp ``export''?  Maybe I could
 specify an argument that sets the logical root?
 
   So:
 
 mount_sftp --root=/home/lewiz foo.bar.com /remote_home

Hmm, with that security level, I wonder how they will handle NFS.

Basically you have to ask the folks administering your systems if they
allow NFS and I doubt it already.


 would provide /home/lewiz on foo.bar.com at /remote_host?  Is this
 possible in any way at all?

It is, as above.

 Or can anybody suggest any other way I might achieve something similar?
 Bear in mind I am actually restricted to sftp/ssh.

Forget your ideas. Tell us what it is that you want to be doing.




-Wash

http://www.netmeister.org/news/learn2quote.html

--
|\  _,,,---,,_ | Odhiambo Washington[EMAIL PROTECTED]
Zzz /,`.-'`'-.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_) | GSM: +254 722 743223   +254 733 744121
+
Everyone can be taught to sculpt: Michelangelo would have had to be
taught how ___not to.  So it is with the great programmers.


pgp0.pgp
Description: PGP signature


Re: sftp mount?

2003-11-07 Thread Lewis Thompson
On Fri, Nov 07, 2003 at 05:56:43PM +0300, Odhiambo Washington wrote:
 * Lewis Thompson [EMAIL PROTECTED] [20031107 17:28]: wrote:
  At my university everything is firewalled and the only way I can
  transfer files to/from my account is to use sftp -- but that gets quite
  painful after a while.
 
 What do you mean by quite painful? sftp should be very easy to use

Yeah, it is fairly easy to use but it's still annoying to be doing it.
In reality what I want is to edit the remote files directly.  I don't
want to be copying back/forth.  It can't really be automated either,
since I'm not doing the same task over and over.

 Basically you have to ask the folks administering your systems if they
 allow NFS and I doubt it already.

No, they don't.  Pretty much the only thing allowed is ssh/sftp.

  Or can anybody suggest any other way I might achieve something similar?
  Bear in mind I am actually restricted to sftp/ssh.
 
 Forget your ideas. Tell us what it is that you want to be doing.

I want my remote home directory (available just by ssh) to be
transparently available from a local directory :P

  Thanks very much,

-lewiz.

-- 
I was so much older then, I'm younger than that now.  --Bob Dylan, 1964.

-| msn:[EMAIL PROTECTED] | jabber:[EMAIL PROTECTED] | url:www.lewiz.org |-


pgp0.pgp
Description: PGP signature


Re: sftp mount?

2003-11-07 Thread Malcolm Kay
On Sat, 8 Nov 2003 01:31, Lewis Thompson wrote:
 On Fri, Nov 07, 2003 at 05:56:43PM +0300, Odhiambo Washington wrote:
  * Lewis Thompson [EMAIL PROTECTED] [20031107 17:28]: wrote:
   At my university everything is firewalled and the only way I can
   transfer files to/from my account is to use sftp -- but that gets quite
   painful after a while.
 
  What do you mean by quite painful? sftp should be very easy to use

 Yeah, it is fairly easy to use but it's still annoying to be doing it.
 In reality what I want is to edit the remote files directly.  I don't
 want to be copying back/forth.  It can't really be automated either,
 since I'm not doing the same task over and over.

Am I missing something? To edit the remote files *directly*, login
via ssh and edit. 

Malcolm
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sftp mount?

2003-11-07 Thread Lewis Thompson
On Sat, Nov 08, 2003 at 11:22:57AM +1030, Malcolm Kay wrote:
 On Sat, 8 Nov 2003 01:31, Lewis Thompson wrote:
  Yeah, it is fairly easy to use but it's still annoying to be doing it.
  In reality what I want is to edit the remote files directly.  I don't
  want to be copying back/forth.  It can't really be automated either,
  since I'm not doing the same task over and over.
 
 Am I missing something? To edit the remote files *directly*, login
 via ssh and edit. 

Hehe.  I'm hacking java stuff and I have no X11 forwarding (well, I
actually do but it's horrendously slow ;).

  Thanks,

-lewiz.

-- 
I was so much older then, I'm younger than that now.  --Bob Dylan, 1964.

-| msn:[EMAIL PROTECTED] | jabber:[EMAIL PROTECTED] | url:www.lewiz.org |-


pgp0.pgp
Description: PGP signature


Re: sftp mount?

2003-11-07 Thread Lowell Gilbert
Lewis Thompson [EMAIL PROTECTED] writes:

 On Fri, Nov 07, 2003 at 05:56:43PM +0300, Odhiambo Washington wrote:
  * Lewis Thompson [EMAIL PROTECTED] [20031107 17:28]: wrote:
   At my university everything is firewalled and the only way I can
   transfer files to/from my account is to use sftp -- but that gets quite
   painful after a while.
  
  What do you mean by quite painful? sftp should be very easy to use
 
 Yeah, it is fairly easy to use but it's still annoying to be doing it.
 In reality what I want is to edit the remote files directly.  I don't
 want to be copying back/forth.  It can't really be automated either,
 since I'm not doing the same task over and over.

rdist (or something like it) would automate the whole copy process
pretty well, though.

  Basically you have to ask the folks administering your systems if they
  allow NFS and I doubt it already.
 
 No, they don't.  Pretty much the only thing allowed is ssh/sftp.

If port forwarding is available/allowed, you could forward NFS through
ssh.  Might be a little painful unless the connection is fast and
dependable, though.

   Or can anybody suggest any other way I might achieve something similar?
   Bear in mind I am actually restricted to sftp/ssh.
  
  Forget your ideas. Tell us what it is that you want to be doing.
 
 I want my remote home directory (available just by ssh) to be
 transparently available from a local directory :P

Copying a whole directory tree is pretty easy, especially with tool
support, it's transparent while you're doing the editing, and you get
full speed while you're editing.  That would be my recommendation.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]