Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

some lab computers at my university have sftp disabled. However, I have normal ssh access. Obviously I don't have root permissions on these computers.

I need to transfer a fair amount of VHDL to/from these. I could use, fx:

ssh user@lab1 cat file > local_copy

-and tarball it all up, but that is plain ugly. I would rather mount through sftp so I can use my own local editor, but given the circumstances...

And I belive that SSHFS (the FUSE module) depends on sftp... :/

share|improve this question
    
Just found shfs but it seems rather old. No package for ubuntu. –  user42806 Nov 21 '10 at 17:24
    
Not sure what shfs is, but sshfs is under active development. Build source if no Ubuntu package. –  user31752 Nov 21 '10 at 17:57

2 Answers 2

What about SCP?

http://www.go2linux.org/scp-linux-command-line-copy-files-over-ssh

share|improve this answer
    
That works, but I would still like a mount point, so I can edit as if locally (ie with my own editor). –  user42806 Nov 21 '10 at 17:29
    
even with sftp you wouldn't really be editing locally but you'd first download, then edit, then upload edited version, no? I'd go with a vnc if that's possible, it will be faster and more convenient. –  stijn Nov 21 '10 at 17:31
    
Yes, but ofc. thats transparent to me. No VNC, but I could X-forward the the lab pc's outdated editor. The question still holds. –  user42806 Nov 21 '10 at 17:38

If sftp is merely missing, as opposed to actively forbidden (which I'm not sure is even possible if you have full command line access), obtain an sftp-server binary for the right architecture and version of OpenSSH, and specify its path when calling sftp or sshfs:

sftp -s /path/to/sftp-server user@lab1
sshfs -o sftp_server=/path/to/sftp-server user@lab1:/ /path/to/mount/point

If your local editor is Emacs, you don't need all that: Tramp can use many different methods including ssh and ssh+scp.

If you prefer to maintain a local copy of all the files, you can use Unison (like rsync, but bidirectional) to keep them in synch.

share|improve this answer
    
Thanks for the -o sftp_server; I was consistently missing it in the docs until found here. :) Works for me in the dropbear + openssh-sftp-server combination. –  atzz Jul 6 '12 at 17:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.