Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-07-2003, 01:14 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,487
sde is on a distinguished road
disable telnet?

i'm running debian ..

how do i disable telnet ?

i'm trying to disable telnet, and set ssh to listen on port 23.

i set /etc/ssh/sshd_config to port 23,
and i set /etc/ssh/ssh_config to host on port 23,

but it still accepts requests on port 22.
sde is offline   Reply With Quote
Old 02-07-2003, 02:12 PM   #2 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
on a system with a standard inetd, simply comment out the line for telnet in /etc/inetd.conf, and tell inetd to restart by sending it a SIGHUP.

on systems using the messed-up xinetd, you'll have to edit the config files at /etc/xinetd.d/

assuming you're using openssh, set in /etc/ssh/sshd_config Port to 23 and a SIGHUP to sshd should do it.

a good system will have a man page for each important config file (ex: sshd_config(5))

what do you expect to gain by putting sshd on port 23?
joe_bruin is offline   Reply With Quote
Old 02-07-2003, 02:22 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,487
sde is on a distinguished road
thanks joe, .. i setup ssh on port 23 so i can access my box from behind a work firewall... don't know why exactly they have 23 open, .. but 22 is not.
sde is offline   Reply With Quote
Old 02-07-2003, 02:39 PM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,487
sde is on a distinguished road
i'm still confused on the SIGHUP thing, .. [SHELL]# ps aux |grep inetd[/SHELL] that gave me the pid, then i did [SHELL]# kill -9 pid[/SHELL]that killed the process, .. a couple seconds later it restarted itself and the port was still set to 22.

i restarted the system ( init 6 ) , then port 23 was enabled. what did i do wrong? i would like to understand how i should have done it without rebooting.
sde is offline   Reply With Quote
Old 02-07-2003, 03:05 PM   #5 (permalink)
anon
Guest
 
Posts: n/a
Just guessing, -9 is SIGKILL, try -1
  Reply With Quote
Old 02-07-2003, 03:25 PM   #6 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
kill -HUP <inetd pid>
joe_bruin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Telnet bluedevils1414 Lounge 24 08-13-2003 06:42 PM


All times are GMT -8. The time now is 05:03 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting