Solved

telnet in c#

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

803 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