Solved

telnet in c#

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

707 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

15 Experts available now in Live!

Get 1:1 Help Now