1834814 Members
2554 Online
110070 Solutions
New Discussion

Re: FTP

 
Bronya
New Member

FTP

Hello,
I have a problem with ftp on HP UX 11.0. I can ftp to this machine from other machines on the network, but cannot ftp from the machine to other machines. The same goes with telneting.
Thanks for help
10 REPLIES 10
Ken Hubnik_2
Honored Contributor

Re: FTP

Check the /var/adm/inetd.conf file on all the machines and see if the allow and deny on ftp and telnet is configured.
Ken Hubnik_2
Honored Contributor

Re: FTP

Sorry I meant /var/adm/inetd.sec
Shannon Petry
Honored Contributor

Re: FTP

Please check the following.

/etc/nsswitch.conf
/etc/resolv.conf

Usually when these problems occur, name resolution is failing. Ensure that your ordering for name resolving is in a good logical manner. I.E. Normally I have hosts->NIS->DNS->return and make sure that each resolver continues to the next instead of a return.

If your not sure how to manipulate /etc/nsswitch.conf manually, use SAM -> Networking and Communications -> nsswitch.conf

Also, ensure that your entries in /etc/resolv.conf are correct if using DNS.

Regards,
Shannon
Microsoft. When do you want a virus today?
Steven E. Protter
Exalted Contributor

Re: FTP

To test Shannon's idea(which looks good to me)

Try ftp and telnet with IP adresses. If it works, its a DNS problem. If not, back to the drawing board.

Also: look at /var/adm/syslog/syslog.log on the target machines, see if a connection attemp is happening and getting rejected.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Suresh Patoria
Super Advisor

Re: FTP

Hi,

check the /etc/inetd.conf and /var/adm/inetd.sec file

and also check the /etc/hosts file

i want to know, Are u able to ping the remote host.

Thanx
Suresh Patoria
Super Advisor

Re: FTP

Hi again,

u also check in the remote machine are u able to do telnet and ftp to localhost

above service is enable in the remote system

Thanx
Kevin O'Donovan
Regular Advisor

Re: FTP

Hi,

maybe its just that the other machines aren't setup to allow ftp access to them? Can you ftp between some of the other machines?

What error message are you getting when you try to ftp from this machine to the other machines?

Kevin.
Ron Kinner
Honored Contributor

Re: FTP

Going along with Kevin's idea:

Most window boxes require special setup or third party software to run ftp or telnet servers. Many UNIX boxes are coming out with the FTP and Telnet servers turned off for security purposes.

On one of the UNIX boxes check for an FTP server with:

netstat -an |grep 21

and for a telnet server with:

netstat -an |grep 23

If you don't get a line with TCP LISTEN in it
there is no server running.

On a window box just do netstat -an and look to see if it's listening on port 21 and 23 (TCP). IF not then it's not going to work.
We are fond of the free WAR FTP server www.warftp.org for our window boxes. Don't have a lot of use for telnet since we use pcAnywhere to get a graphic interface so I can't help you with that.

Ron

Rita C Workman
Honored Contributor

Re: FTP

...and one last thing to check (going along with folks above).
You mention you can ftp to other boxes, but you can't ftp or telnet to THIS box.

It's alluded to above...nslookup. AND...check your hostfile again. It is quite possible you have duplicated something in there...possibly the IP or possibly you are using an alias/hostname more than once. Remember on any lookup it will resolve based on the FIRST instance it hits that is viewed as a match.

Just one more thing to check,
Rita
Bronya
New Member

Re: FTP

Thanks to all of you. We are ok now. Bronya