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?