Solved

telnet in c#

Posted on 2011-02-24
3
1,298 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

930 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now