Re: error using putty command line options

From: Morten Christensen (mc@slet.mig.mc.cx)
Date: 10/27/02


Date: Sun, 27 Oct 2002 11:58:27 +0100
From: Morten Christensen <mc@slet.mig.mc.cx>

Jon Larsen wrote in mail, at 24-10-02 21:57:

> I'm using putty release 0.53 on Windows 2000 Professional. I have been
> trying to implement an automated log on and execution of a remote command
> using the -pw and -m command line options. I've tried accessing a Solaris
> 5.8 server and a Windows 2000 server running openssh. But everytime I add
> either option to the command line, I get an error message saying "invalid
> port number". I've tried adding the -P option to the command line and
> specifying the port number, but that doesn't change the result. I've been
> able to get this syntax to work so far:
>
> putty -ssh -v user_name@host_ip_address
>
> But putty -ssh -v -pw password user_name@host_ip_address gives me the error.
>
> Anyone had success with this? Thanks.

Never tried it but:

PuTTY can read the portnumber after the ip-adress only
seperated by a space "user@111.222.111.222 2345"

I would use Plink instead of PuTTY for your project.
I think, Plink is more designed for this action.

--
mvh
Morten Christensen



Relevant Pages

  • Re: How to open Hyperterminal using Expect and send command in hyperterminal
    ... I also tried using exec command but that opens a new window and no ... The issue is that hyperterminal is a Windows application, not a console one - although this might be confusing. ... Have you considered using telnet.exe from Windows or plink.exe from Putty? ... ("host" can also be a PuTTY saved session name) ...
    (comp.lang.tcl)
  • Re: Putty (plink) causes zombie process while executing a command
    ... The Windows box runs Windows XP SP2 and Debian is Sarge. ... > plink without arguments says I'm using release 0.58. ... USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND ... Executing the command "plink..." ...
    (Debian-User)
  • Re: Putty (plink) causes zombie process while executing a command
    ... > I'm trying to execute a command on my Sarge box using plink on ... > But instead of listing my home directory in my dos box, ... Do you have similar problems when you use putty itself instead of plink ...
    (Debian-User)
  • Re: starting kde/gnome
    ... I'm using cygwin/Xfree86 for X windows hosting on ... that using PuTTY is a similiar solution to what I've ... So what I'm looking for is what command *should* I use ... From there, clients (like PuTTY ...
    (RedHat)
  • Re: OT: OS X and Putty
    ... With Putty under ... Windows you can set up a specific connection as an icon, double click, ... and then run your command. ...
    (uk.comp.os.linux)