Linux File Sharing Using Twistd

Posted: January 26, 2013 in Basic, LINUX

Linux File Sharing Using Twistd

Posted on : 26-09-2011 | By : admin | In : Admin Tools

Tags:

1

To share your directory with others on your network or even on the internet, you can use the twisted tool to share your folders (similar to web and ftp or even on other ports).

 

How to install twisted on CentOS?

 

Twisted is a python based tool, you need rpms like python-twisted-core, pyOpenSSL, python-zope-interface to install the too. You can make use of the RPMforge rpm repo on yum to install the tool on your server or destop easily.

 

Ssh your server as root.

 

Download and install the correct repo based on your os arch and version.

Now install the Twistd tool using.

 

  • # yum install python-twisted-core
    # yum install python-twisted-web

 

Sharing your folder on the web.

 

Just execute the following command from your root shell to start sharing the directory online.

 

  • # twistd web –path /home/ –port 8081 &

To kill or end the twistd, use.

 

  • # killall -9 twistd

The above will start a web server on port 8081 sharing your /home directory. You can use http://<server-ip&gt;:8081 to get the full list of /home directory on your web browser.

Sharing your folder on FTP.

 

Similar to http you can also use ftp protocol to start sharing. Just execute.

 

  • # twistd -n ftp -r /home/ &

This will start the ftp service on the default port 2121, you can use your ftp client on port 2121 to connect with your server.

 

This tool is extremely useful for the admins to share the directory/files on inter or intranet when scp or rsync tools are not much useful. Also you need to make sure you have the ports opened on your server/desktop end.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s