Starting ftpd by hand is easy
- Become root
Code:
j65nko@hercules[~]su - root
Password: *************
- Start the ftpd server
Code:
root@hercules[~]/usr/libexec/ftpd -DUS
- Check whether ftpd is LISTENing on the ftp port 21
Code:
root@hercules[~]netstat -an -f inet
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp 0 0 *.21 *.* LISTEN
tcp 0 0 *.6000 *.* LISTEN
tcp 0 0 *.3306 *.* LISTEN
tcp 0 0 127.0.0.1.587 *.* LISTEN
tcp 0 0 127.0.0.1.25 *.* LISTEN
tcp 0 0 *.515 *.* LISTEN
tcp 0 0 192.168.222.20.22 *.* LISTEN
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
udp 0 0 192.168.222.20.2628 91.198.174.197.123
udp 0 0 192.168.222.20.36276 131.211.84.189.123
udp 0 0 192.168.222.20.9945 85.17.233.194.123
udp 0 0 *.514 *.*
A test on the OpenBSD box itself:
Code:
ftp localhost
Trying 127.0.0.1...
Connected to localhost.
220 hercules.utp.xnet FTP server ready.
331 Password required for j65nko.
230- OpenBSD 4.7-current (GENERIC) #31780: Sat Apr 3 16:55:32 MDT 2010
230-
230- Welcome to OpenBSD: The proactively secure Unix-like operating system.
230-
230- Please use the sendbug(1) utility to report bugs in the system.
230- Before reporting a bug, please try to reproduce it with the latest
230- version of the code. With bug reports, please try to ensure that
230- enough information to reproduce the problem is enclosed, and if a
230- known fix for it exists, include that as well.
230-
230 User j65nko logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/home/j65nko" is current directory.
ftp>ls *txt
150 Opening ASCII mode data connection for '/bin/ls'.
-rw-r--r-- 1 j65nko j65nko 2668 May 26 2010 88bde-balance-pl.txt
-rw-r--r-- 1 j65nko j65nko 812 May 5 2010 accounting-database.txt
-rw-r--r-- 1 j65nko j65nko 1424 Dec 6 01:50 external-USB-disk-iomega.txt
-rw-r--r-- 1 j65nko j65nko 1322 May 29 2010 php5-core.pkg-add.txt
-rw-r--r-- 1 j65nko j65nko 351 Apr 21 2010 xslt.txt
226 Transfer complete.
ftp> quit
221 Goodbye.