Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking into making a Telnet server so I can remotely enter commands on my computer (Windows 7). How would I go about doing this?

share|improve this question

closed as off topic by Michael Hampton, John Gardeniers, Frands Hansen, Tom O'Connor, EEAA Oct 21 '12 at 0:58

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

what's the purpose of this? which command are you planning to enter? – Radio Oct 20 '12 at 23:53
Why not use winrs or New-PSSession instead? – jscott Oct 21 '12 at 0:57

Don't make a telnet server.

Install OpenSSH and you'll have a secure version of telnet which you can use to run remote commands - all without having to write a single line of code.

share|improve this answer
What ports do I have to forward to use OpenSSH? – Piccolo Oct 20 '12 at 23:21
Assuming you use the default: 22. – Jay Oct 20 '12 at 23:23
I second this and 22 is the port you need for ssh – egorgry Oct 20 '12 at 23:23
... and if it wasn't clear, Telnet is insecure and isn't recommended for production use by any sane administrator, and hasn't been recommended for a long time. – David W Oct 20 '12 at 23:27

Check out this thread of mine, titled How can I connect to a Windows server using a Command Line Interface?, which might be helpful in accomplishing what you're really trying to do.

share|improve this answer
This is good, and includes various options. An ssh server is good if you are coming remotely from a Linux machine; but using PSExec or native Windows tools may be best if you are coming remotely from another Windows machine. – Lars Rohrbach Oct 21 '12 at 0:27

Here are steps from Microsoft, to achieve your goal.

share|improve this answer
Really should come with a disclaimer not to actually do this, though. – HopelessN00b Oct 21 '12 at 0:47
@HopelessN00b: OP should have think about this, before starting this bad idea. What to lose here? =)) – Radio Oct 21 '12 at 0:49
I've got no problem with telling someone how to shoot their foot off, but as a sysadmin, a big part of the job is at least forewarning the person in question that they're about to blow their foot off. A lot of them pull the trigger anyway, and when they do, it's not your fault, so long as you warned them in advance. – HopelessN00b Oct 21 '12 at 0:58
Forget about them. Less people, less problems. – Radio Oct 21 '12 at 1:05
I've enabled it, now what command do I use to start it up? Yes, I know Telnet is risky business as it's not encrypted. It's more of a test than anything. – Piccolo Oct 21 '12 at 1:06

Not the answer you're looking for? Browse other questions tagged or ask your own question.