Why this project?

Well, I'm a web developer and I'm a freelancer. I work with different organizations and each of them has its ways to keep projects and of course software tools.

My need to fill up all the gap beetween me and other teams is: syncronization.

How do it? How to do it fast and smooth? Out there there are so many Eclipse's plugin but none of them was right for me.
Here comes rsync! I'm used to work with Linux (Ubuntu LTS) and Mac (OS X Tiger) so I can run rsyncplugin plugin right out of the box, without any effort.

 

 

How to use the plugin?

Before you can use this plugin you need to create a public/private key and setup the remote account you will use to commit your projects. It's an easy task but you need to check few thing... here we go!

 

 

Let's find out how to create a public/private key
  1. Open a terminal and from your user account type:
    pyro:~/.ssh alfredocerutti$ ssh-keygen -t dsa -b 2048
    - When it requires password LEAVE IT BLANK - DON'T TYPE ANYTHING; just PRESS ENTER;
    - When it ask where to save and which name keep the default

  2. Now under your .ssh directory there are the public and the private key; Here mine:
    pyro:~/.ssh alfredocerutti$ ll
    total 24
    -rw------- 1 alfredoc alfredoc 1192 Aug 22 14:43 id_dsa
    -rw-r--r-- 1 alfredoc alfredoc 1127 Aug 22 14:43 id_dsa.pub
    -rw-r--r-- 1 alfredoc alfredoc 2557 Sep 13 22:45 known_hosts
    - id_dsa.pub is your public key.

  3. Copy to the remote server the file named id_dsa.pub under the account you will use for your job:
    $ scp id_dsa.pub ACCOUNT@REMOTE_SERVER/.ssh
    Where:
    - ACCOUNT is your job account
    - REMOTE_SERVER is the ip or name of the server
    - /.ssh is the full path to get into the .ssh directory (this is the default for Linux)

    When password is required type it.

  4. Use ssh to login into the remote server:
    $ ssh ACCOUNT@REMOTE_SERVER
    As you log in then move to .ssh folder
    $ cd .ssh
    And append the previously copied key as follow:
    $ cat id_dsa.pub >> authorized_keys
    Now you can logout; After that try to relogin with ssh. If the sshd server is configured to allow autorized key no password will be required. Well done, you're ready to use rsyncplugin!

 

 

What do to if ssh still ask for password

If the steps above don't allow you login without the need to type your password contact the admin of the remote server and ask him to check the file sshd_config; it must containt:

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys

 

 

Setup preferences and rsyncplugin use

Once you have ssh and rsync working without prompting for password you can setup the global preferences for Rsync and the project preferences.
After that just select the project node from the panel "NAVIGATOR" and choose what action perform.