Posted by: isaraffee | August 29, 2009

Exploring FTP in Dreamlinux 2.2

Exploring FTP in Dreamlinux 2.2

For ftp to work, the ftp server, in this case, the Ubuntu server needs to run the ftp server services. On my Ubuntu server, I have installed proftp. To see of the ftp server service is running, type:

root@ismailrocks:~# ps -ef|grep ftp

proftpd 4882 1 0 09:27 ? 00:00:00 proftpd: (accepting connections)

If your proftpd is not running, you will need to start it. The location tostart the proftpd service is at :

root@ismailrocks:/etc/init.d# ./proftpd

Usage: /etc/init.d/proftpd {start|force-start|stop|force-stop|reload|restart|force-reload}

As for the ftp client, you will need the ftp client program. This is normally installed by default. Check its existence by typing

root@mars:~# which ftp

/usr/bin/ftp

FTP from Dreamlinux server to Ubuntu server

root@mars:~# ftp 172.18.0.2

Connected to 172.18.0.2.

220 ProFTPD 1.3.0 Server (Debian) [::ffff:172.18.0.2]

Name (172.18.0.2:root): ismail

331 Password required for ismail.

Password:

230 User ismail logged in.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> pwd

257 “/home/ismail” is current directory.

ftp>

Yes this shows that the ftp connection is successful. Try to put and get some files between the terminals.

Ok now let’s reverse the roles: Dreamlinux will be the ftp server and Ubuntu, the ftp client.

Firstly install the proftpd package on the Dreamlinux

# apt-get install proftpd

After you had installed the package, start the ftp server.

root@mars:/etc/init.d# ./proftpd start

You can start ftp server as standalone, as in my case or you can start it as a internet superserver in inetd.

root@mars:/etc/init.d# ./proftpd status

ProFTPd is started in standalone mode, currently running.

Test the ftp

root@mars:/etc/init.d# ftp 172.16.0.2

Connected to 172.16.0.2.

220 ProFTPD 1.3.1 Server (Debian) [::ffff:172.16.0.2

Name (172.16.0.2:root): ismail

331 Password required for ismail

Password:

230 User ismail logged in

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> pwd

257 “/home/ismail” is the current directory

Thus the ftp is working fine.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

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

Categories

%d bloggers like this: