I want to send some commands to be executed using ssh from browser (in
this case windows) to server (linux).
regards, ssh authentication I've already took care of that part means
any client ssh to server without password.
The browser by itself does not send commands. The browser can only
send requests to a web server or (if the browser allows it) invoke
some external programs for dealing with certain URLs the browser
doesn't know how to handle by itself (ssh is one of them).
Let's look again at the two scenarios:
a) The browser sends a (POST) request to the web server that makes
the web server execute a CGI script written in Perl. Within that
script you can ssh to any third machine the web server has access
to to your hearts desires. That way you could easily execute a
command on the third machine, read in the what it returns and
assemble a web page that then gets send back to the browser that
initiated the request. I already tried to give you some hints on
how to deal with that in a previous post.
b) On the same machine where the browser is running you have bound
a certain application (perhaps written in Perl) to a certain
protocol (ssh seems to be what you want). This requires that
this application is installed on the the machine the browser is
running on and that the browser is set up to invoke this appli-
cation when being asked to deal with the ssh protocol. That's
like when you click on an email address and then your favorite
email program pops up: the browser is set up to start the email
program whenever you click on a link that starts with 'mailto:'.
You still have not given any indication of what you're up to.
And just talking about 'ssh' won't make it any clearer.
Should you really have set up a Linux box to allow logins via ssh
without a password from everywhere on the internet then I can only
strongly recommend that you take it off tne net *NOW* or in a few
minutes it will be pwnded (or it already is).
Regards, Jens