How to run putty.exe file in server?

Hi,
I want to run putty.exe in Solaris server.My main aim is to invoke the putty.exe in Solaris server from a web application(.jsp) deployed in the server so that putty terminal should open.

Thanks in advance

Hi,

you can link putty.exe as download in the .jsp file. This a very bad idea since every browser get extremely alarmed - which is a very good thing to protect the PCs user - if some website offers an executable file to execute at the clients pc.

You presumably have to battle with several security measures preventing the execution of .exe-files. Furthermore this will only work with windows as client. No MAC, no Linux. A Java-Applet maybe a cross-platform Alternative, but the security-nightmare is nearly the same as with .exe - files. You can try to just put putty.exe on your webserver and get it executed. Maybe thats ok for you. If that works you may link it in your jsp-file.

You may search for a html / javascript based SSH-Terminal and if you like to offer such functionality via the internet you shouldn't even think about doing that without a proper SSL-secured Webserver or you end up sending your (root?)-Passwords in plain over the net.

An interesting SSH-Terminal maybe e. g.:
GitHub - liftoff/GateOne: Gate One is an HTML5-powered terminal emulator and SSH client

Have a look here too:
Web-based SSH - Wikipedia, the free encyclopedia

regards,
stomp

Thanks stomp for the reply.

Firstly i dont want it to be download as virus files. Just it should be invoked for a particular ip's a terimal should be opened for excuting commands.

Second i gone through Gateone , but it is webbased . My systems will not be connected to internet they are Intranet connections.

Can u suggest me any other option

Thanks in advance

Why not just tell them to use putty? I'm not really understanding the issue here, especially on an intranet where you've got the opportunity to inform people what to do.

The systems will be on client side. The application is deployed intranet systems connected in different countries. In the code(.jsp) we will be having 100 ips.When we click on particular ip that server terminal should be opened

Thanks Corona

Yes it is webbased(That's the cool thing about it :slight_smile: ). And if you put the Gateone-Application onto your webserver you do not need a connection to the internet. All is located within your own webserver. And no, I would never trust an ssh-terminal located on a foreign server :slight_smile: .

I assume chaithanyaa likes to have some button "click here to open ssh-terminal to this server". IMHO very convenient. This possibly eleminates all client side configuration. (SSH-Settings can be configured the server before launching the web-ssh-terminal).

But then you have to have the settings to allow the web server that much control enabled. It seldom works out that easily. Observe the rounds of installation and configuration whack-a-mole needed to run a java-based meeting client, even after install there's probably still a few 'are you really sure?' 'no, are you REALLY sure?' popups to wade through. SSH is liable to have its own particular hurdles there as well.

You can push that all out of course, this being an intranet, but it's rather the long way around from just pushing putty onto their desktop in the first place.

Even if you do not offer putty.exe for download but only launch an already installed instance of it the security implications are likely as hard as downloading and supposedly such a solution won't ever be working with different browsers.

And if you do not have a very clean management, where you absolutely can be sure that putty.exe is always located under the same path "C:\Program files....", you'll have a hell of chaos of the various clients.

When I see terminals pushed the way you describe, it's usually done with things like Citrix. Wanting total control of someone else's window before the terminal is established isn't so much SSH as virtualization.

Of course: TIMTOWDI

I'm not sure if you're talking about that desktop rubble.

I just checked it out, because I'm curious about it. I had it up in 5 Minutes at a Linux test webserver. Seems to be not that much trouble to stuff in some individual settings.

---

What I've realized is: Gateone is a python application under the hood. (Thought it was only pure html). I'm not sure if it's that easy to have that python environment within solaris.

----

I have another idea: Isn't there a common file extension for Putty-SSH-Session-Configurations? If yes, you possibly may create and offer such a session-config-file for download, which will your clients browser probably make to offer it to the user to open it with the linked program(putty) and start the correctly configured session.

----

Did you try google? Lots of answers.

launch putty session from browser - Google search

My point is, what he wants isn't an SSH client, it's a virtualization tool.

Accepted as your personal opinion.

For myself, from the few sentences that chaithanyaa wrote, I have no basis to speak out such a recommendation, not the least knowing if that really may be of any good and requiring considerable efforts to be invested.

So I let the poster decide for himself/herself what he/she sees fit - not excluding the option you gave.

---------- Post updated at 10:34 PM ---------- Previous update was at 08:32 PM ----------

And yes: As far as I understood you, you possible see your advice as what is best here.

That too is why I called TIMTOWDI in: As a reminder that most of the time there may be more than the single best thing.

Many thoughts - even if no whole solution itself - possibly extend the understanding of the problem the ability to figure out a proper solution - increasing overall knowledge and learning of all participating persons.

As an aspect of a community, others may be personally pleased if there's no single best solution, which would void the value of other posts, but showing there is an important part in everyones post.

----

Back to the topic

I'm still the opinion that a simple ssh-web-term has good features to offer here:

  • All software required is a modern webbrower
  • No Configuration at the client side needed
  • A web app can probably easily be configured
  • The work to do is to set up only the server side and integrate it with the existing application

But I'm still not sure what meets the posters needs best.