Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have two machines, one is a laptop and the other is a desktop computer located in my room at the university behind a firewall.

Is there a way I can use unison to synchronize folders between these two machine? I can do this by mounting the remote file system localy but I was hoping for something more elegant.

Edit:
When I'm tyring to sync localy to a mounter folder I get an error:

Operation not permitted

I can write to the folder directly (e.g. creating a file and saving it with emacs)

share|improve this question
    
What kind of access do you have between the two machines? Unison works over ssh, so I assume you don't have a direct ssh connection. If you only have a machine that you can reach from both, you can establish a reverse ssh tunnel. But if you can mount one machine's filesystem from the other, the natural way is to use unison locally! –  Gilles Nov 30 '11 at 23:34
    
@Gilles: have an ssh connection established between the two machines. I tried to do the reverese ssh trick but it didn't work (probably beacouse I didn't understand it, or I don't have sufficient permissions on the server). Currently I'm doing this locally but I still get an error. I'll update my question. –  Yotam Dec 1 '11 at 6:51
1  
How exactly did you configure unison? Post your profile file, and the output of ls -ld on the two root directories. –  Gilles Dec 1 '11 at 11:05
add comment

2 Answers

If you have SSH access to your laptop, then you can run unison on your desktop machine behind firewall and sync through an SSH connectin.

share|improve this answer
add comment

You could perhaps use ssh with tunnelling feature and (assuming that your laptop is on internet with public ipaddress).

share|improve this answer
    
I have set a connection to the remote machine (the desktop) to go throuh the gateway using my hosts file and proxycommand. When I try to connect (in the GUI interface) I get an error: Lost connection with the server –  Yotam Nov 30 '11 at 19:50
add comment

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.