loading PUTTY and open an SSH connection using within HTML - html

I have been asked to create a webpage that has different links and depending on the link it will load putty and open an SSH connection.
I have never done this before so hoping that someone may be able to help me or guide me in the right direction.
I cannot find anywhere online where it shows how to do this.

Use the ssh: scheme in your URI:
SSH to hostname
It's up to the browser's configuration to know that it should run Putty to implement the ssh: scheme. Web browsers can't run local programs directly (except using ActiveX in Internet Explorer).
However, browsers may not actually support this. There was an Internet Draft specification for this URI scheme
https://datatracker.ietf.org/doc/html/draft-ietf-secsh-scp-sftp-ssh-uri-04
but it expired 8 years ago and was never made into an official standard.

Related

How do you fix "Your connections isn’t private" when opening with the Google Chrome browser?

I'm debugging a local site.
I'm getting the following message in chrome.
Your connection is not private
Attackers might be trying to steal your information from t.buyamerica.com (for example, passwords, messages, or credit cards). Learn more
NET::ERR_CERT_COMMON_NAME_INVALID
This is not new, and normally I just click ADVANCED and Procced ...
but lately it just stuck in a loop and display the error message again.
This is a local site therefore the key-pair is indeed invalid, but is there a way to by-pass this issue without installing a proper https for all my local (vagrant based) servers?
NOTE:
The current by-pass for me is to use the same domain as the original site, so that the local site is www.somesite.com, and the actual site is somesite.com
I solved this issue as follow:
In
System Preference -> Network -> WiFi -> Advanced -> Proxies I saw that Secure Http Proxy (HTTPS) is checked and the value for the proxy is localhost:8888
I unchecked the Secure Http Proxy (HTTPS) and it seems to solve the issue.
NOTE: this is a specific MAC issue that apparently caused by a system upgrade (my current version is 10.10.5 (14F2511) Yosemite, MacBook Air (13-inch, Mid 2012))
I never set a proxy server or run any proxy on localhost:8888
You change your local domain something like http://yourdomain.test.
Don't forget the 'http'. And if you're using .dev, change it to .test

What protocols are supported by Google chrome browser?

Is it that all protocols implemented on top of TCP/ UDP are supported by chrome? Does HTTP/ HTTPS implementation somehow hides functioning SMTP or FTP in the background ?
Do all browsers support ssh through them or is it a design thing?
In terms of what protocols you can use in the Chrome browser bar you can use: HTTP, HTTPS, FILE, and FTP. SSH is not implemented by Chrome, but rather it implements SSL. It also does not implement SMTP, but rather when you visit a website like Gmail or Yahoo mail, you are simply visiting a website (via HTTP or hopefully HTTPS). That website is not at all connecting to an SMTP server to display your emails, but is merely serving up web pages and connecting to API's to display/edit/compose your email (by then which the email client's backend is connected to their SMTP server).
Also chrome does implement FTP, like you can visit an IP address that has FTP enable such as : ftp://123.34.45.890 and you can use the directory listings as a webpage. An example of this would the CentOS mirrors here. On the right column they have FTP sites. You can access the FTP director via web browser that supports FTP or you can fire up a terminal and do ftp ftp://ftp.is.co.za/mirror/centos/.
For the ssh part,Google chrome supports SSL and not ssh. Though ssh can be done using extensions like secure-shell. These extensions combines the ssh command (see http://openssh.org/ for details) ported to NativeClient with the “hterm” terminal emulator to provide a secure shell client for the Chrome browser.
Though a key thing to be noted is that “HTML Terminal”, or hterm, is an xterm-compatible terminal emulator written entirely in JavaScript.
It is intended to be fast enough and correct enough to compete with native terminals such as xterm, gnome-terminal, konsole and Terminal.app.
hterm is only a terminal emulator. It does not provide SSH access (or any other text-based command) on its own.
The 4 main protocols are HTTP, HTTPS, FILE, FTP. All other protocols are designed to work on top of them.
For the second part, all browsers can be made to support ssh through them.

How to disable the Internet connection for a specific website?

I need to use a website to draw some diagrams, but I want to be sure that nothing goes to the server while I'm using it. This is why I want to use it locally.
After I visit that website, how can I disable the Internet connection only for that website in a given browser (I prefer Chrome, but I can also use Firefox or Internet Explorer)?
The website provides an "offline web application" containing:
<html manifest="cache.manifest">
</html>
so, it will work "offline". But this doesn't avoid the whole communication between the client and the server when the Internet connection is available. Using the Network tab I confirmed this "theoretical knowledge".
I don't want to stop the "whole" Internet connection, because I'd like to use other websites while drawing those diagrams.
Either edit your etc/hosts to resolve the hostname of the website in question to 127.0.0.1 or install some blocker extension like request policy or µmatrix

Localhost not loading in any browser

I have asked a similar question before here I sort of fixed it but im still facing a similar issue. Every time I try to load localhost, port 8095, I receive this error message in Google Chrome:
Google Chrome's connection attempt to localhost was rejected. The
website may be down, or your network may not be properly configured.
If there is a way to fix it, please tell me,
If not, please could someone inform me how to reset IIS to its original settings. Or if I can reset Windows Features so I can re-install ISS from scratch.
My website uses ASP with a connection to a SQL Server database (2012). Basic HTML pages also don't load under the URL, localhost:8095/
The servers were stopped because 2 services within administrative tools had stopped. World Wide Web Publishing Service and Web Management Service

Is there a way to launch exe application from firefox and chrome

I have an intranet site, so i'm not worried about security. What I need to do is allow my users to launch putty.exe from a browser link. The point is that there are numerous putty connections on different ip's ports etc.
Currently we use IE and activex. But we want to use chrome or firefox.
I've heard of ie tab and locallink, but they're not that feasible.
Is there a way to launch a program from a link, crossbrowser?
ie Putty
Being that the program you want to use is PuTTY, in you could do something like:
Putty
Which in Chrome and Firefox will prompt you to choose the appropiate program for that protocol the first time, after that the program should start automatically...
You could also use ssh or ssh2 instead of telnet if your client software (in this case PuTTY) has those URI schemes registered....