Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

telnet in c#

Posted on 2011-02-24
3
1,308 Views
Last Modified: 2013-12-17
Hi,
I have coded for a telnet console but while connectiong to server (remote), I am unable to receive the message.

I am just receiving the data "SSH-2.0-OpenSSH_4.3"

But if I use putty, it gives me prompt like: "Login As", "Password:".

Then it opens a terminal.

Please help me regarding this.
0
Comment
Question by:sam000
3 Comments
 
LVL 8

Expert Comment

by:jimsweb
ID: 34968009
A couple of suggestions:

If you have issues while connecting, It may be due to firewall. You need check both the machines, including the client you are trying to connect.

Try netstat in the server.

0
 
LVL 6

Accepted Solution

by:
de2Zotjes earned 250 total points
ID: 34969150
The putty connection you are setting up is not making a telnet connection. It is connecting using the ssh-protocol. When you use your telnet console client it is connecting to the ssh daemon, which announces itself by telling what and what version it is. A proper ssh client will start negotiating what encryption method to use for the session. Your telnet app is not doing that and the server just sits idle waiting for the client to make the next move. In contrast the putty client does negotiate an encryption method and sets up a secure communication channel after which the server presents the login prompt ( from login, the binary )

You can either recode your stuff do do ssh (the way to go) or enable telnet on the server (don't, telnet is unsafe, everything is cleartext!) and connect to telnets port(23)

0
 

Author Closing Comment

by:sam000
ID: 34976740
It was helpful but partially
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
We all know how boring and exhausting it is to transfer huge web projects developed locally to a webserver simply via FTP. The File Transfer Protocol is a really nice solution if you need to transfer small amounts of files, but if you're plannin…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question