<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ftp syntax when using port other than 21 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467657#M16009</link>
    <description>I had to leave port 21 open for ftp on my router for the DSL provider. I setup another port in /etc/services:&lt;BR /&gt;xftp        2121/tcp                 # File Transfer Protocol (Control)&lt;BR /&gt;&lt;BR /&gt;and added the following line to my /etc/inetd.conf file:&lt;BR /&gt;xftp          stream tcp nowait root /usr/lbin/ftpd      ftpd -l&lt;BR /&gt;&lt;BR /&gt;then entered: &lt;BR /&gt;root:L1000&amp;gt;:inetd -c&lt;BR /&gt;&lt;BR /&gt;I had assumed that I could then use:&lt;BR /&gt;&lt;BR /&gt;ftp 192.100.100.199 2121&lt;BR /&gt;&lt;BR /&gt;but I don't get a connection. I did the same steps for telnet, and it works fine. Is the syntax different for ftp?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 27 Nov 2000 20:55:20 GMT</pubDate>
    <dc:creator>Richard Darling</dc:creator>
    <dc:date>2000-11-27T20:55:20Z</dc:date>
    <item>
      <title>ftp syntax when using port other than 21</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467657#M16009</link>
      <description>I had to leave port 21 open for ftp on my router for the DSL provider. I setup another port in /etc/services:&lt;BR /&gt;xftp        2121/tcp                 # File Transfer Protocol (Control)&lt;BR /&gt;&lt;BR /&gt;and added the following line to my /etc/inetd.conf file:&lt;BR /&gt;xftp          stream tcp nowait root /usr/lbin/ftpd      ftpd -l&lt;BR /&gt;&lt;BR /&gt;then entered: &lt;BR /&gt;root:L1000&amp;gt;:inetd -c&lt;BR /&gt;&lt;BR /&gt;I had assumed that I could then use:&lt;BR /&gt;&lt;BR /&gt;ftp 192.100.100.199 2121&lt;BR /&gt;&lt;BR /&gt;but I don't get a connection. I did the same steps for telnet, and it works fine. Is the syntax different for ftp?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Nov 2000 20:55:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467657#M16009</guid>
      <dc:creator>Richard Darling</dc:creator>
      <dc:date>2000-11-27T20:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: ftp syntax when using port other than 21</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467658#M16010</link>
      <description>Richard:&lt;BR /&gt;&lt;BR /&gt;I remember reading somewhere that the ftp daemon will look in the services file for a service called ftp therefore I would suggest that in your services file, comment out the &lt;BR /&gt;#ftp-data       20/tcp&lt;BR /&gt;#ftp                 21/tcp&lt;BR /&gt;&lt;BR /&gt;and create the new entries:&lt;BR /&gt;&lt;BR /&gt;ftp-data       2120/tcp&lt;BR /&gt;ftp                 2121/tcp&lt;BR /&gt;(rather than calling it xftp)&lt;BR /&gt;&lt;BR /&gt;next do the inetd -c bit&lt;BR /&gt;and run &lt;BR /&gt;# netstat -a | grep ftp&lt;BR /&gt;ensure that it is listening on the ftp port.&lt;BR /&gt;&lt;BR /&gt;then try:&lt;BR /&gt;ftp&lt;BR /&gt;&amp;gt; open host 2121&lt;BR /&gt;&lt;BR /&gt;it should work.&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Nov 2000 21:25:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467658#M16010</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-11-27T21:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: ftp syntax when using port other than 21</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467659#M16011</link>
      <description>I need to use the xftp (actually anything unique, because I want to continue to use port 21 for internal ftp. I have alot of machines setup with ftp voyager, and it would take a while to change all the machines to port 2121. It also worked fine for telnet.&lt;BR /&gt;I also just got the message:&lt;BR /&gt;421 Service not available, remote server has closed connection&lt;BR /&gt;&lt;BR /&gt;so there is something else going on...</description>
      <pubDate>Mon, 27 Nov 2000 21:29:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467659#M16011</guid>
      <dc:creator>Richard Darling</dc:creator>
      <dc:date>2000-11-27T21:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: ftp syntax when using port other than 21</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467660#M16012</link>
      <description>Okay... just tested and it seems to work - can you ensure that you have a corresponding xftp-data defined in your /etc/services file. then try ftp localhost 2121 also check the /var/adm/syslog/syslog.log for messages</description>
      <pubDate>Mon, 27 Nov 2000 21:49:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467660#M16012</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-11-27T21:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: ftp syntax when using port other than 21</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467661#M16013</link>
      <description>I did all that - thanks...I get the message saying that I am connected, and then the cursor just hangs...and then the connection is "Closed by Remote Host"&lt;BR /&gt;&lt;BR /&gt;In the log I get:&lt;BR /&gt;Nov 27 16:29:59 L1000 ftpd[7000]: FTP LOGIN FROM g40 [192.100.100.251], root&lt;BR /&gt;Nov 27 16:30:17 L1000 ftpd[7000]: FTP session closed&lt;BR /&gt;&lt;BR /&gt;not much help...</description>
      <pubDate>Mon, 27 Nov 2000 22:08:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467661#M16013</guid>
      <dc:creator>Richard Darling</dc:creator>
      <dc:date>2000-11-27T22:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: ftp syntax when using port other than 21</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467662#M16014</link>
      <description>hmmm.. the plot thickens:&lt;BR /&gt;&lt;BR /&gt;1. Can you still ftp on port 21?&lt;BR /&gt;&lt;BR /&gt;2. you might want to get verbose debugging messages so edit your /etc/inetd.conf file and modify the ftpd -l line  to read ftpd -l -d  (then restart inetd with inetd -c)&lt;BR /&gt;&lt;BR /&gt;3. Something that jumps to mind is do you have access restrictions turned on in /var/adm/inetd.sec? or are you running DNS?  it is possible that it is timing out waiting for the reverse name lookup of the connecting host.&lt;BR /&gt;&lt;BR /&gt;try (while logged on to the server itself, ) ftp localhost 2121  &lt;BR /&gt; then look at the messages in the /var/adm/syslog/syslog.log ( with the debug turned on, you should get more verbose information)</description>
      <pubDate>Mon, 27 Nov 2000 22:23:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467662#M16014</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-11-27T22:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: ftp syntax when using port other than 21</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467663#M16015</link>
      <description>by the way could you post what you have by the way of netstat -a | grep LISTEN&lt;BR /&gt;(edit  it to remove IP addresses before posting)</description>
      <pubDate>Mon, 27 Nov 2000 22:30:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467663#M16015</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-11-27T22:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: ftp syntax when using port other than 21</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467664#M16016</link>
      <description>Kofi,&lt;BR /&gt;1. No problem using ftp on port 21? &lt;BR /&gt;&lt;BR /&gt;2. you might want to get verbose debugging messages so edit your /etc/inetd.conf file and modify the ftpd -l line to read ftpd -l -d (then restart inetd with inetd -c) &lt;BR /&gt;&lt;BR /&gt;3. No access restrictions turned on in /var/adm/inetd.sec. and no DNS.&lt;BR /&gt;&lt;BR /&gt;4. Tryed ftp localhost 2121... &lt;BR /&gt;no messages generated in the /var/adm/syslog/syslog.log.&lt;BR /&gt;&lt;BR /&gt;root:L1000&amp;gt;:ftp localhost 2121&lt;BR /&gt;Connected to localhost.&lt;BR /&gt;&lt;BR /&gt;the cursur just hangs at this point, and when I kill it with contrl c I get:&lt;BR /&gt;&lt;BR /&gt;421 Service not available, remote server has closed connection&lt;BR /&gt;ftp&amp;gt;&lt;BR /&gt;the ouptut from netstat -a | grep LISTEN is quite long, so instead here is the output from:&lt;BR /&gt; &lt;BR /&gt;root:L1000&amp;gt;:netstat -a | grep ftp&lt;BR /&gt;tcp        0      0  *.xftp              *.*                     LISTEN&lt;BR /&gt;tcp        0      0  *.ftp                  *.*                     LISTEN&lt;BR /&gt;udp        0      0  *.tftp                 *.*&lt;BR /&gt;&lt;BR /&gt;I am missing somthing here - and it is driving me nuts...is port 2121 reserved for anything special... I didn't think so - nothing in /etc/services. Here are the last lines from the syslog after&lt;BR /&gt; inetd -c &lt;BR /&gt;and attempting &lt;BR /&gt;ftp localhost 2121&lt;BR /&gt;&lt;BR /&gt;Nov 28 09:23:19 L1000 inetd[550]: Rereading configuration&lt;BR /&gt;Nov 28 09:23:19 L1000 inetd[550]: protocol = tcp&lt;BR /&gt;Nov 28 09:17:16 L1000 inetd[550]: xftp/tcp: Service enabled&lt;BR /&gt;Nov 28 09:23:19 L1000 inetd[550]: protocol = udp&lt;BR /&gt;Nov 28 09:23:20 L1000 inetd[550]: Configuration complete&lt;BR /&gt;&lt;BR /&gt;Nothing on the attempted ftp and it is weird that the service enable message is not in chronological order in the syslog.</description>
      <pubDate>Tue, 28 Nov 2000 14:21:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467664#M16016</guid>
      <dc:creator>Richard Darling</dc:creator>
      <dc:date>2000-11-28T14:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: ftp syntax when using port other than 21</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467665#M16017</link>
      <description>I didn't mean to leave the question mark at the end of the sentence on point 1 - ftp works without a problem to port 21.</description>
      <pubDate>Tue, 28 Nov 2000 18:04:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467665#M16017</guid>
      <dc:creator>Richard Darling</dc:creator>
      <dc:date>2000-11-28T18:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: ftp syntax when using port other than 21</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467666#M16018</link>
      <description>I don't know if I can help :&lt;BR /&gt;I made a test on a new server with a basic&lt;BR /&gt;HPUX 11.00 installation :&lt;BR /&gt;&lt;BR /&gt;with ftp 21/tcp in my etc/services&lt;BR /&gt; &amp;gt;ftp localhost 2121&lt;BR /&gt;  Connected to localhost &lt;BR /&gt;I had to kill with CtrlC&lt;BR /&gt;This port seems to be use by another process. &lt;BR /&gt;With netstat this port is in use and the file&lt;BR /&gt;socket is /opt/dcelocal/var/rpc/local/s-0/2121.&lt;BR /&gt;But I syslog there is a bind error for inetd !!&lt;BR /&gt;&lt;BR /&gt;After I use ftp 30000/tcp in etc/services and&lt;BR /&gt;it seems to work well....&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Nov 2000 18:12:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467666#M16018</guid>
      <dc:creator>Herve BRANGIER</dc:creator>
      <dc:date>2000-11-28T18:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: ftp syntax when using port other than 21</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467667#M16019</link>
      <description>I found the problem. There are two services at port 2121. Do you know what the udp one is?&lt;BR /&gt;&lt;BR /&gt;root:L1000&amp;gt;:netstat -an | grep 2121&lt;BR /&gt;tcp        0      0  *.2121                 *.*                     LISTEN&lt;BR /&gt;udp        0      0  *.2121                 *.*&lt;BR /&gt;       102244400 stream      0      0        100dd3800                0&lt;BR /&gt;       0                0 /opt/dcelocal/var/rpc/local/s-0/2121&lt;BR /&gt;       102248c00 dgram       0      0        100dd2800                0&lt;BR /&gt;       0                0 /opt/dcelocal/var/rpc/local/s-3/2121&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Nov 2000 18:14:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467667#M16019</guid>
      <dc:creator>Richard Darling</dc:creator>
      <dc:date>2000-11-28T18:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: ftp syntax when using port other than 21</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467668#M16020</link>
      <description>Problem solved - two services on the same port -</description>
      <pubDate>Tue, 28 Nov 2000 18:27:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-syntax-when-using-port-other-than-21/m-p/2467668#M16020</guid>
      <dc:creator>Richard Darling</dc:creator>
      <dc:date>2000-11-28T18:27:24Z</dc:date>
    </item>
  </channel>
</rss>

