telnet prompt issue

Hi, I have a simple question about telnet. The current telnet login prompt is “hostname login:”. How can I remove the hostname from the prompt and make it only show “login:”? Thank you in advance!

Hi thesunlover,

from man telnetd:

Regards,
Jens

First, read the comments in /etc/init.d/xinetd which explain why you shouldn’t use telnet. I hope you’re not using it to log in from anywhere other than your network. Then add this line to /etc/init.d/xinetd

	server_args	= -h -H

The restart xinetd

$ service xinetd  restart[/CODE]

Before
[CODE]me@mine:~> telnet 172.16.54.133
Trying 172.16.54.133...
Connected to 172.16.54.133.
Escape character is '^]'.
Welcome to SUSE Linux Enterprise Desktop 11 SP3  (x86_64) - Kernel 3.0.101-0.8-default (2).

localhost login: 

After:

[CODE]me@mine:~> telnet 172.16.54.133
Trying 172.16.54.133…
Connected to 172.16.54.133.
Escape character is ‘^]’.

login:
[/CODE]

And for those (like me) too lazy to type -H over and over:

Code:

echo “alias telnet=‘telnet -H’” >> ~/.alias

Hopefully this goes without saying, but telnet should never be used
anymore. It’s been replaced by a dozen other, and secure, tools. telnet
makes sniffing passwords as easy as it gets, and there are no workarounds
there so if anything you do via telnet matters, please stop.


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…

Hi ab,

it was about the server, not the client :wink:

Regards,
Jens