Operating System - HP-UX
1753278 Members
5654 Online
108792 Solutions
New Discussion юеВ

telnet hangs but ftp works

 
Todd McDaniel_1
Honored Contributor

telnet hangs but ftp works

Okay we have a situation with telnet just started hanging this morning, rlogin and telnet hang even from another box in the same group.

One guy was in the box early this morning, but now it hangs. FTP does work.

I was able to valiate the /etc/passwd is not bad, but is there a way to get out of ftp and into a shell so I can look around more easily?
Unix, the other white meat.
12 REPLIES 12
James R. Ferguson
Acclaimed Contributor

Re: telnet hangs but ftp works

hi ToddY;

> is there a way to get out of ftp and into a shell so I can look around more easily?

Yes, type a bang ('!'). You will be given a shell. Type 'exit' and you will be returned to the FTP session.

Regards!

...JRF...
Todd McDaniel_1
Honored Contributor

Re: telnet hangs but ftp works

that only puts me back in my windows shell... i need to get to the unix shell
Unix, the other white meat.
Mel Burslan
Honored Contributor

Re: telnet hangs but ftp works

Did telnet'ing into different boxes in the same IP address range(subnet) also start to have problems ? If so, you might have a problem with your DNS servers. Also, I'd check the /etc/hosts, /etc/resolv.conf and /etc/nsswitch.conf, while logged in via ftp.

also, when does the session hang, before or after asking username and/or password ?
________________________________
UNIX because I majored in cryptology...
Todd McDaniel_1
Honored Contributor

Re: telnet hangs but ftp works

it hangs after I put in my passwd and hit enter and even after the banner message.

Is there some way to disable scripts when logging in?

btw, none of those files has been altered recently...
Unix, the other white meat.
Todd McDaniel_1
Honored Contributor

Re: telnet hangs but ftp works

I can telnet into the other boxes for this client just fine with no issues.
Unix, the other white meat.
Doug O'Leary
Honored Contributor

Re: telnet hangs but ftp works

Can you ssh into the box? (circumvents inetd)

If not, you're probably stuck getting on the console.

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Mel Burslan
Honored Contributor

Re: telnet hangs but ftp works

One thing comes to mind is, if you are logged in as root, via ftp, move /etc/profile out of the way, or replace it with something very simple, say something which echoes a one liner to the screen, to make sure it got executed. Also do the same for the ~root/.profile and ~root/rc (if exists) and then try logging in

as you attempt logging in, ftp the syslog.log few time in different stages to see what messages are being logged.

I bet you ran of space in /var/tmp due to someone hammering the server with a scripted login, ending up filling the wtmp and/or btmp files. It happened to me on one of my servers couple of weeks ago. check the sizes of those files via ftp session as well.

________________________________
UNIX because I majored in cryptology...
Todd McDaniel_1
Honored Contributor

Re: telnet hangs but ftp works

Doug,

ssh hangs as well when I attempt to login.


however, when I did:

telnet 23

and once it started to login I hit cntl ] and got some odd telnet> prompt it seemed as though I was online but no commands worked that I tried.
Unix, the other white meat.
Mel Burslan
Honored Contributor

Re: telnet hangs but ftp works

try remote command execution via ssh

ssh user@server bdf

did it work ? if if did, do you have any 100% full filesystems ?
________________________________
UNIX because I majored in cryptology...