HP-UX System Administrator's Guide: Configuration Management
Establishing an FTP Connection from a PC to HP-UX
NOTE: See also “Establishing an FTP Connection from HP-UX to a PC” (page 91). If
you have a third-party program, use those instructions instead.
1. On your PC, start the FTP utility:
a. Click the Start bar in the lower-left corner of your PC’s screen.
b. Click Programs in the pop-up menu.
c. Click Accessories in the next pop-up menu.
d. Click Command Prompt in the final pop-up menu.
e. Type ftp at the prompt in the window.
2. Open a connection to your HP-UX system using FTP’s open command:
ftp> open flserver.net2.corporate
If the connection is successful, FTP will let you know that you are connected and
display information about the FTP server on the HP-UX system:
Connected to flserver.net2.corporate.
220 flserver FTP Server (Version 1.7.111.1) ready.
If your connection succeeded, proceed to Step 3.
If the connection is not successful, FTP will let you know that the connection failed.
The displayed error message will vary depending on what is the cause of the failed
connection:
□ ftp: connect: Connection refused
Possible causes of this error message include:
– Problem: The internet daemon (inetd) is not running on your HP-UX
system.
Solution: The real problem is that the ftpd daemon is not running, but it
is usually inetd that starts ftpd on an as-needed basis. inetd is usually
started up when you boot your computer. If your HP-UX system is in
single-user mode you will need to switch it to a run-level of 2 or higher.
– Problem: The FTP daemon (ftpd) is not running.
Solution: Verify that there is a valid entry in the file /etc/inetd.conf
for the ftpd daemon. The entry should look like this:
ftp stream tcp nowait root /usr/lbin/ftpd ftp -lconf
Make sure that the entry is not commented out (no # in the first column).
Make the appropriate repairs and use the command
/usr/sbin/inetd -c
Configuring File Transfer Protocol (FTP) 99