LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-29-2018, 11:00 AM   #1
mrmola
LQ Newbie
 
Registered: May 2018
Posts: 2

Rep: Reputation: Disabled
How can I set up a telnet server on localhost with a login


I am working on a telnet default credential tester script for various edumacational reasons. Anyway, how do I set up my computer so that I have a telnet server that I can test my script on?
 
Old 08-29-2018, 11:15 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by mrmola View Post
I am working on a telnet default credential tester script for various edumacational reasons. Anyway, how do I set up my computer so that I have a telnet server that I can test my script on?
You tell us nothing about your system, so it's hard to say. Version/distro of Linux is needed, because how you enable something like this may be different from one version/distro to another. Read the "Question Guidelines" link in my posting signature.

Also worth mentioning that, unless your script is a *VERY* niche piece of software, you won't get much traction with Telnet. It is very, VERY insecure, and disabled/not-even-installed in pretty much every distro these days. Using SSH is a far better idea, and it's much easier to script for.
 
Old 08-29-2018, 11:27 AM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
https://askubuntu.com/questions/7992...untu-16/959422
https://askubuntu.com/questions/6687...lts-be-enabled
 
Old 08-29-2018, 12:12 PM   #4
mrmola
LQ Newbie
 
Registered: May 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
I am running Ubuntu 16.04. It is a very very niche script
 
Old 08-29-2018, 12:17 PM   #5
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,307
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Again, SSH is far easier to write scripts for.

However, if you still want telnet, there are two telnet daemons in the repository: telnetd and inetutils-telnetd

Make sure that 1) it listens only to the localhost address and 2) you have port 23 blocked from the outside world on that machine. Disable it or turn it off or uninstall it when you are done.
 
1 members found this post helpful.
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to LOGIN via TELNET - Linux Server nevshank Linux - Newbie 9 07-15-2013 02:53 PM
telnet localhost 143 and a No login gailed sanjivsays Linux - Newbie 1 07-23-2011 05:37 PM
server@localhost after login. Huh? t2k Linux - Software 0 12-18-2004 04:28 PM
can not telnet localhost 25 but telnet dowell.exper.dynserv.com 25 exper Linux - Software 0 02-25-2004 05:13 AM
Telnet localhost and telnet not from localhost for IMAP services seb77 Linux - Networking 1 10-15-2003 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration