Re: Invoking an SSH client by clicking a URL Link



cyrusgreats@xxxxxxxxx wrote:
On Mar 25, 3:23 pm, Tad J McClellan <ta...@xxxxxxxxxxxxxx> wrote:
cyrusgre...@xxxxxxxxx <cyrusgre...@xxxxxxxxx> wrote:
On Mar 25, 2:15 pm, smallpond <smallp...@xxxxxxxx> wrote:
On Mar 25, 3:58 pm, cyrusgre...@xxxxxxxxx wrote:

Thanks Ben what I'm looking for is, say from page user can click on a
link in which it sends a command to Linux shell server

You didn't answer Ben's question.  What is "it" in the above sentence.
Your possible choices are:
 1) the browser on the client PC
 2) the perl cgi on the web server

A page or a link can't send anything since they are just data, not
programs.

Ok here the scenario:

1. user launch ie from windows say to automation webpage
2. There some options/links on automation page for example - by
clicking on a link, webpagee executes or send a command or run script
on remote linux server
3. the result of the above commands are printed into wepage

I've already wrote the page and need invoke ssh from webpage to send
command to remote linux server, hope I answered all your questions

Is there an answer to Ben's and smallpond's question in there somewhere?

Do you want to do ssh from a browser or do you what to do ssh from a server?

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
--
\ Jens Thoms Toerring ___ jt@xxxxxxxxxxx
\__________________________ http://toerring.de
.



Relevant Pages

  • Re: IE6 Stops Working, Emails, Ping, Other ports just fine
    ... Server: tmtu.mt.rs.els-gms.att.net ... I can't access the google.com using its ip addr in my browser. ... > used by the connection your telnet command created. ... > XPsp2 has a new netsh command which could substitute: ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: IE6 Stops Working, Emails, Ping, Other ports just fine
    ... Server: tmtu.mt.rs.els-gms.att.net ... I can't access the google.com using its ip addr in my browser. ... > used by the connection your telnet command created. ... > XPsp2 has a new netsh command which could substitute: ...
    (microsoft.public.win2000.networking)
  • Re: Got TCP/IP connection, but no file sharing!?
    ... No where can I find that having the Computer Browser Service ... and the server announces itself on the networking using the special ... and why doesn't a workgroup environment work the same ... server) generally acts as the master browser. ...
    (microsoft.public.windowsxp.network_web)
  • Re: =?ISO-8859-1?Q?Can=92t_see_a_compute?= =?ISO-8859-1?Q?r_in_the_network?=
    ... Find Computer Browser ... Find Server ... Find Workstation ... CONFIG and Browser and Sharedaccess are RUNNING. ...
    (microsoft.public.windowsxp.network_web)
  • Re: After setting up the network
    ... Find Computer Browser ... Find Server ... PsService v2.20 - Service information and configuration utility ... CPSServ Comprehensive Networking Services V1.10 - PERRINS2 ...
    (microsoft.public.windowsxp.network_web)