From: Keshav on
i m writing a shell script which will execute a particular shell script
on solaris from windows. i gave up with rsh now.
I have downloaded openssh for cygwin. it is asking for password on
execution. Can that be overridden?
Putty is not working as it can login to particular machine but cann't
execute any command
i tried
putty -ssh user(a)machine -pw **** -m commandfile
whenver i give -m option it shut down the window for putty without -m
option it works fine but my aim is to execute some command.
Any help??


Casper H.S. Dik wrote:

> "Keshav" <gupta.keshav(a)gmail.com> writes:
>
> >There is nothing like
> >svcadm enable login:default (rsh host)
> >its giving the error
> >svcadm: Pattern 'login:default' doesn't match any instances
>
> Sorry; "login:rlogin"
>
> >still i have enabled all the services related to login, but i m not
> >able to rsh from win machine. I m able to do rsh from any other unix
> >machine but from root user only??
>
> "rsh" needs to be set-uid root; it is possible that not all
> OSes ship "rsh' as a set-uid root program anymore.
>
> I'd strongly recommend usign "ssh" instead (PuTTY on Windows as client)
>
> Casper
> --
> Expressed in this posting are my opinions. They are in no way related
> to opinions held by my employer, Sun Microsystems.
> Statements on Sun products included here are not gospel and may
> be fiction rather than truth.

From: Casper H.S. Dik on
"Keshav" <gupta.keshav(a)gmail.com> writes:

>i m writing a shell script which will execute a particular shell script
>on solaris from windows. i gave up with rsh now.
>I have downloaded openssh for cygwin. it is asking for password on
>execution. Can that be overridden?

You will need to configure the remote host to allow passwordless
logins through publickeys or other mechanisms.

>Putty is not working as it can login to particular machine but cann't
>execute any command
>i tried
>putty -ssh user(a)machine -pw **** -m commandfile
>whenver i give -m option it shut down the window for putty without -m
>option it works fine but my aim is to execute some command.


No idea about putty.

Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
From: Thomas Krickstadt on
Casper H.S. Dik:
> Keshav:

>> Putty is not working as it can login to particular machine
>> but cann't execute any command i tried

>> putty -ssh user(a)machine -pw **** -m commandfile

>> whenver i give -m option it shut down the window for putty
>> without -m option it works fine but my aim is to execute
>> some command.

> No idea about putty.

Try the accompanying plink command, see
<http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter7.html#plink>.

HTH, Thomas
--
Thomas Krickstadt, Berlin, Germany, <mailto:usenet(a)krickstadt.de>
First  |  Prev  | 
Pages: 1 2 3
Prev: starting mysql
Next: Help: Cannot boot from CD