The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Operating Systems
> Windows Help
|
Plink/Putty telnet help
Discuss Plink/Putty telnet help in the Windows Help forum on Dev Shed. Plink/Putty telnet help Windows Help forum discussing tips, tricks, configurations, and more. Microsoft Windows is one of the most popular operating systems due to its ease of use.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

February 21st, 2011, 08:50 AM
|
|
Registered User
|
|
Join Date: Feb 2011
Posts: 2
Time spent in forums: 1 h 21 m 58 sec
Reputation Power: 0
|
|
|
Plink/Putty telnet help
I need to create a batch file for work that will allow the user to connect and send a single command to a device, no login required.
I've decided to use plink/putty to implement this, as it seems to be the simplest way. However, I'm very new to telnet, and I can't figure out out to get plink to send the commands.
for testing, I am simply trying to connect and send commands to gmail. I can do this in putty without any issue by connecting to smtp.gmail.com 25. I have saved this as a session named test1, and can then connect in the command prompt by typing "plink test1", and it connects, but I have no idea how to send any further commands. I cannot even type in the command prompt window at this point.
Any suggestions?
Thanks
|

February 21st, 2011, 09:21 AM
|
 |
Automagically Delicious
|
|
Join Date: May 2004
Location: 127.0.0.2 - I live next door.
|
|
|
Plink is just the connection tool to get you to telnet or SSH to another machine using a CLI. Once you're connected you just need to send the commands over the telnet session then, aka, the command prompt.
__________________
Adam TT
|

February 21st, 2011, 10:37 AM
|
|
Registered User
|
|
Join Date: Feb 2011
Posts: 2
Time spent in forums: 1 h 21 m 58 sec
Reputation Power: 0
|
|
|
This is what I thought as well, but when I connect, I cannot type any further commands. The curser is there but typing has no effect, so I cannot input any commands.
|

February 21st, 2011, 03:01 PM
|
 |
Automagically Delicious
|
|
Join Date: May 2004
Location: 127.0.0.2 - I live next door.
|
|
|
what is the command you are using to connect with plink? There may be some options in there to return to the command line. Otherwise, if you aren't going to be doing it via script, why don't you just use the pre-installed telnet?
|

February 21st, 2011, 08:31 PM
|
|
|
Are you using telnet or ssh?
I don't know about plink, but ssh client software on other systems allow you to send a remote command to the server when you connect, something like:
Quote:
ssh -p 22 someuser@somesite.zzz "put your remote command in quotes like this" |
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|