Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

URGENT - sshd getpeername failed: Bad file descriptor

4,041 views
Skip to first unread message

targetm...@yahoo.com

unread,
Sep 1, 2000, 3:20:52 AM9/1/00
to
The problem has been descripted in below...
1/ I have a redhat linux 6.1 server with sshd and ssh installed.
2/ A new window 98 with ssh client contact the redhat server and login
as "root".
3/ The window98 received a new key.
4/ Inputed two times incorrect root password.
5/ Inputed a correct root password at third time.
6/ Login as root from window 98
7/ Everything works fine, memory usage ok, cpu usage ok.
8/ But an error appear in the /var/log/message file.

Sep 1 21:52:44 solar sshd[28003]: log: Closing connection to
163.70.127.240
Sep 1 21:52:47 solar sshd[28502]: log: Connection from 163.70.127.240
port 1425
Sep 1 21:52:47 solar sshd[28502]: log: Could not reverse map address
163.70.127.240.
Sep 1 21:52:47 solar sshd[28502]: error: getpeername failed: Bad file
descriptor
Sep 1 21:52:48 solar sshd[28502]: log: Password authentication for
root accepted.
Sep 1 21:52:48 solar sshd[28502]: log: ROOT LOGIN as 'root' from
163.70.127.240

9/ Tried to login again from the window98, same error appears again.
10/ Tried to login from another window95, same error appears again.

Please help, what is the getpeername failed: Bad file descriptor?
How to fix this error?
Do I have to fix this error or just leave it?

Thanks in advance...
Regards,
Johnny


Sent via Deja.com http://www.deja.com/
Before you buy.

targetm...@yahoo.com

unread,
Sep 1, 2000, 3:26:32 AM9/1/00
to

targetm...@yahoo.com

unread,
Sep 1, 2000, 10:48:38 AM9/1/00
to
In article <8onlms$p1e$1...@nnrp1.deja.com>,

>
> Fix your DNS so that nslookup returns a name for that IP from the
reverse
> lookup zone, or at least make sure that you have names for your Win95
and
> 98 IPs in /etc/hosts.
>
> --
> David Efflandt effl...@xnet.com http://www.de-srv.com/
> http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
> http://hammer.prohosting.com/~cgi-wiz/ http://cgi-
help.virtualave.net/
>
>


Thank you for your reply.

Actually, this redhat server with sshd has been up and run for more
then 3 months without DNS server nor the ip address for window98 and 95
in its /etc/hosts file.

It works fine in the last 3 months, it just could not reverse map
address. The sshd works ok until I type in the wrong password two times
yesterday. The error start appears in /var/log/message - error:
getpeername failed: Bad file descriptor.

Although it looks like DNS+/etc/hosts error, but actually it is not.
Since I have another set of server with same redhat+sshd, but it works
well.

Sorry for my bad english : ), and thank you for your time.

Michael Pfennich

unread,
Sep 7, 2000, 8:16:10 AM9/7/00
to targetm...@yahoo.com
hi,

> 6/ Login as root from window 98
> 7/ Everything works fine, memory usage ok, cpu usage ok.
> 8/ But an error appear in the /var/log/message file.

> Sep 1 21:52:47 solar sshd[28502]: log: Could not reverse map address
> 163.70.127.240.

looks like an dns problem:
--> ssh seems to make an reverse lookup for this ip, which fails

if you use dns:
does the ip 163.70.127.240 have any name (eg. host.mydomain.com)??
if yes, make an nslookup for 163.70.127.240
--> guess it will print something like "non-existent host/domain)
out...
--> make an entry in hosts.rev in your dns server
if you donot use dns, for this host,
add the host to your /etc/hosts table

hope it helps
michael pfennich

0 new messages