Re: PuTTY fails to compile using gcc on Solaris

From: Nyssa (
Date: 07/20/04

Date: 19 Jul 2004 16:34:00 -0700 (Per Hedeland) wrote in message news:<cdg2pm$2fdc$>...
> In article <>
> (Nyssa) writes:
> >
> >My intention was to incorporate plink in a script as it allows for the
> >ability to prompt for a password at the command prompt when
> >establishing a connection from my host to the destination server.
> In that case I'd really have to agree with Michael - why not just use
> the "standard" ssh client in OpenSSH, it can obviously do that too
> (unless I misunderstand what you want). I could imagine someone wanting
> PuTTY for the GUI/menus stuff that xterm + OpenSSH won't provide - but
> for the commandline functionality I see no point (nothing wrong with
> PuTTY/plink I'm sure, but OpenSSH has "a few" more years of building/
> running on Unix in general, and Solaris in particular, under the belt).
> --Per Hedeland

I'm only familiar with the very basics of ssh, specifically I know
that from a command prompt I can specify "ssh <user>@<target_host>"
and I can supply a password rather than rely on keys if that user only
has a local account on the target host (saves the hassle of having to
administer and maintain keys, especially when we have to rely on
another group to set this up), but that command will prompt to enter
in the password. I don't know if the same goes for scp or sftp but I
don't believe there's an option to define the password from command
line. The PuTTY tools like plink and pscp allows the specification of
the password right on the command line, for example "plink -pw
<passwd> <user>@<target_host>" which makes it simpler to put in a
script. I am fairly new to scripting and given the timeline for the
task I was given, I was not sure if I will be able to learn how to
handle interactive sessions in my script in a timely manner (since
this part is only a very small chunk of my requirements). Of course,
this is not the most secure way and my user may end up insisting I use
OpenSSH with secure keys, which then negates my effort here. But I
wanted to explore all the possible options and be able to present
these to my user/client before starting the project. :)

Relevant Pages

  • Re: Attribute Parameter Problem with bind_param( )
    ... I've got a script that works perfectly when called from the command ... O'Reilly's Programming the Perl DBI: ... from the command prompt? ...
  • Re: How to display UTF-8 output to command shell in Win7?
    ... So, to do this, Right-click on the bar of the cmd Prompt, click on ... change the default values of the command console. ... in your Perl script, using a backtick. ... systemwould be preferable to backticks in void context. ...
  • system command wont let go
    ... I am having some difficulties with the 'system' command. ... prompt I can run the program by typing in "~/runsgood.exe". ... ENTER INPUT FILE NAME WITHOUT .in EXTENSION. ... Here is the script ...
  • Re: using `` to change current env
    ... Rather than all the convolutions of command substitution, ... $ cat /tmp/bashrc function changeps() { ... bells-and-whistles prompt to a plain prompt (eg for cut and paste to ... In bash, we cannot run a script plainly, and have that script update ...
  • Re: Perl vs. W2000
    ... >><prompt> set def test ?? ... Could you please give the exact command ... >>> What's the path to perl and... ... in a perl script it is normal to have the first line start with: ...