使用VB6进行Telnet服务器身份验证 [英] Telnet Server Authentcaton usng VB6

查看:146
本文介绍了使用VB6进行Telnet服务器身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在开发一个客户端以远程登录服务器并从中接收数据.但是不知道如何提供通过telnet登录服务器所需的用户名和密码.有人可以帮助我尽快解决这个问题,因为这对我来说非常关键和紧迫.我用谷歌搜索了一个解决方案,但没有找到.谢谢

我举个例子假设您需要使用ip 10.200.136.17登录到主机.如果我从命令提示符处远程登录,则要求输入用户名和密码.

首先我远程登录服务器
telnet 10.200.138.17

然后要求输入用户名密码

用户名:
密码:

然后它连接到主机..

我需要使用vb6做同样的事情.
我找到了一种使用Winsock进行连接的方法.但是我无法连接到主机,因为我不知道如何提供用户名密码才能连接到主机.

Winsock1.RemoteHost ="10.200.138.17"
Winsock1.RemotePort = 23
Winsock1.Connect

请帮忙.我只有2天的时间完成此操作:(

Hi,

i''m developing a client to telnet a server and receive data from it. But dont know how to provide username & password which s required to login to the server by telnet. Can somebody help me to solve this issue asap as t s very crucial and urgent for me. i googled for a solution but failed to find. thanks

ill take an example. Assume that you need to login to a host with ip 10.200.136.17. if i telnet it from the command prompt it asks for username and password.

first i telnet the server
telnet 10.200.138.17

then it asks for username password

username:
password:

then it connects to the host..

i need to do the same thing using vb6.
i have found a way to connect using winsock. but im unable to connect to my host as i doesnt know how to provide username password to connect into it.

Winsock1.RemoteHost = "10.200.138.17"
Winsock1.RemotePort = 23
Winsock1.Connect

please help. i have only 2 days to finish this :(

推荐答案

安装VB.net并加入21世纪.

尝试 [
Install VB.net and join the 21st century.

Try this[^]


我认为Telnet协议不需要密码(尽管我可能在这里错了).可能是服务器需要密码.如果是这样,您需要让我们知道您要连接到的服务器上的服务(即使您要连接的端口号也可能会有所帮助).

是什么让您认为需要用户名/密码?
I do not think that the Telnet protocol requires a password (although I might be wrong here). It is probably the server that requires a password. If so you will need to let us know what service on the server you are trying to connect to (even the port number you are connecting to might help a bit).

What is it that makes you think a username/password is required?


请举个例子.假设您需要使用ip 10.200.136.17登录到主机.如果我从命令提示符处远程登录,则要求输入用户名和密码.

首先我远程登录服务器
telnet 10.200.138.17

然后要求输入用户名密码

用户名:
密码:

然后它连接到主机..

我需要使用vb6做同样的事情.
我找到了一种使用Winsock进行连接的方法.但我无法连接到主机,因为我不知道如何提供用户名密码才能连接到主机.

Winsock1.RemoteHost ="10.200.138.17"
Winsock1.RemotePort = 23
Winsock1.Connect

请帮忙.我只有2天的时间来完成此操作:(:(
ill take an example. Assume that you need to login to a host with ip 10.200.136.17. if i telnet it from the command prompt it asks for username and password.

first i telnet the server
telnet 10.200.138.17

then it asks for username password

username:
password:

then it connects to the host..

i need to do the same thing using vb6.
i have found a way to connect using winsock. but im unable to connect to my host as i doesnt know how to provide username password to connect into it.

Winsock1.RemoteHost = "10.200.138.17"
Winsock1.RemotePort = 23
Winsock1.Connect

please help. i have only 2 days to finish this :( :(


这篇关于使用VB6进行Telnet服务器身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆