# Launch an application on local PC from a web-page

There is a webpage hosted at unix server serverX .The contents of the web-page are shown below.

user1@server1
user2@server2
user3@server3


Now user1@server1 user2@server2 user3@server3 are links.In case,If I want to log into unix account user1@server1 then, I can click on say user1@server1 ,then that should launch putty.exe with arguments user1@server1 from my local PC.So,this means that I will not need to launch putty.exe myself and then type in the server-name and user-name .This whole thing will be automated and will happen on just clicking on the link.Is this possible to implement ? How to go about it ?

-

without some sort of client side web app (like ActiveX/Flash/Java) for instance, this is not possible (for good security reasons), and even with ActiveX/Flash/Java/etc. the security settings are usually set that launching applications is forbidden by the system.

This is also a typically bad way to do things on the security side because anyone with public access to your page could easily get the same access you would have.

If you just want to have to have an automated way to SSH into a server without having to manually type it all the time, you can create a simple batch file that logs into it for you then put that batch file's directory in your PATH variable.

example: C:\mycmds\myserver.cmd would contain the following:

@echo off