Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ssh in tcp_wrappers: ssh/tcp: unknown service

Status
Not open for further replies.

Shrp

IS-IT--Management
Jan 9, 2002
82
US
I build ssh 3.2.9.1 on a Solaris 9 machine, and I'm trying to block certain IP addresses (I get a lot of ssh probes) from connecting through ssh. I'm trying to implement it with tcp_wrappers, so I have the following in inetd.conf:

ssh stream tcp nowait root /usr/local/bin/tcpd sshd -i

There's a line for ssh in /etc/services, I have my allow and deny files, and sshd "works", but when I activate this line in inetd.conf, in the messages file I get:

Feb 10 09:48:29 smash inetd[171]: [ID 965992 daemon.error] ssh/tcp: unknown service

It seems that this IS a known service, however.

Thanks!

 
There's a line for ssh in /etc/services
There should be TWO lines (22/udp and 22/tcp)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I added the line for 22/udp to the /etc/services, uncommented the line for ssh in /etc/inetd.conf, restarted inetd, and I get the same error. I'm not sure if a simple edit to /etc/services does the trick. sshd does seem to work, but doesn't look at the hosts.deny file.

Thanks!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top