473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Telnet from Command prompt

Sorry my last post didnt make any sense.
I currently run a php file through telnet
I log into telnet through the telnet terminal, connect to a server from my university with a password and user name. I then go to a folder and run my php file.

I would like to accomplish this from the command prompt

Any ideas?

Thank you!

John
Feb 27 '09 #1
5 10329
DonRayner
489 Expert 256MB
I'm not quite sure what you're asking here.

If you want to know if you can telnet from a command prompt then the answer is yes. Just type "telnet ServerName" or "telnet ServerIP" from the command prompt. Also if you have iexplorer pre version 7 you can just type "telnet://ServerName" into the address bar. If it's version 7 or later you will have to make an addition to the registry to enable telnet. It also works in Firefox.

If you are looking for something other than using telnet then you could try using Remote Desktop onto a windows server to see if it's enabled for that. or use a VNC client to try and connect to a Linux or Unix box.
Feb 28 '09 #2
I want to do exactly what I do from my desktop from my command prompt
What I am doing from my desktop is:
Opening Telnet application
Entering a host, port, and service (university server, port 22, SSH)
I then get prompted for a SSH authentication, where I enter a username and password
At this point, i want to open a file i have on this server.

I have tried the -> telnet host port command and it seems to do something, as it says "SSH 1.9" and seems connected, but from there if i type anything, it just closes the connection saying "Protocol mismatch" "Connection was lost"

So my big question is: can i connect to this host, and provide validation through the command prompt?

Thank you,

John
Feb 28 '09 #3
DonRayner
489 Expert 256MB
Oh, If you want to use SSH then the windows telnet isn't what you want. You could download something like PuTTy and use that. Although PuTTy does have a gui it can be used from a command prompt and/or scripts.
Mar 1 '09 #4
Well, PuTTY has worked great. I tried to do private key validation, but had troubles- however, I was able to authenticate with a
plink username pass server command

When using a console, this works, and then I can open the file I want to open.

However, when I make a batch file, I am able to connect to the server fine, however, I cannot open the file on the next line of my batch file. Is there an intermediate step I need to do in order to run a file from a batch file once i connect to a remote server?
Mar 1 '09 #5
DonRayner
489 Expert 256MB
PuTTy also has another tool called Plink.exe. This may or may not have been included with your download and is what you are looking for. Just google for it and you should be able to find lots of information on its usage.
Mar 2 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Adam Flott | last post by:
I'm having some difficulty getting the expect function of telnetlib to capture some data that gets returned from a telnet connection. Python's telnet debug reports this: recv...
4
by: Donnal Walter | last post by:
On Windows XP I am able to connect to a remote telnet server from the command prompt using: telnet nnn.nnn.nnn.nnn 23 where nnn.nnn.nnn.nnn is the IP address of the host. But using telnetlib,...
0
by: CJ | last post by:
Can someone look at the code below and tell me whats going on? Here is the problem. I can successfully telnet one of our routers and successfully put in a command in the while statement, but...
2
by: eight02645999 | last post by:
hi i am using a telnet session to simulate an authentication mechanism USER = "user" PASSWORD = "password" try: telnet = telnetlib.Telnet(HOST) telnet.set_debuglevel(5)...
2
by: Arne | last post by:
Hello! Task: Connecting to a unix server and getting the directory list . OS: XP Connecting to the server via telnet is no problem. I also want to get the directory list. I know by using...
2
by: b00x | last post by:
Hi, I'm trying to develop a script that I can reuse to run remote commands on multiple UNIX servers via telnet. I've tried various php scripts after googling for a good 5 or so hours, but found...
3
by: surajsingh | last post by:
Hi, I have a perl script which uses Net::Telnet module to open a telnet session with my unix boxes, and executes lot of commands on those boxes. As this module is implemented, when 'cmd' is...
1
by: Hishaam | last post by:
Hi, In python documentation, i found a telnet example as follows: ------------------------------------------------------------------------- import getpass import sys import telnetlib HOST...
17
by: ravimath | last post by:
Dear all, I have written following script to loin to router bu it is showing error. #!c:\Perl\bin; use strict; use warnings; my $hostname = 'REMOVED FOR YOUR PROTECTION'; my $password =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.