Run Linux SSH Directly from Your Browser with WebSSH – Quick Setup Guide
This article introduces the Python‑based WebSSH tool that lets you access Linux machines through a web browser, outlines its key features, provides step‑by‑step installation and service‑startup commands, and explains how to configure root login for seamless remote management.
This tool, developed in Python, allows you to log into a Linux machine via a web‑based SSH terminal.
Features:
Supports SSH password authentication, including empty passwords.
Supports SSH public‑key authentication (DSA, RSA, ECDSA, Ed25519).
Supports encrypted keys.
Full‑screen terminal.
Resizable terminal window.
Automatic detection of the SSH server's default encoding.
Compatible with modern browsers: Chrome, Firefox, Safari, Edge, Opera.
Installation
pip3 install websshRunning the Service
# Run with default port 8888
wssh
# Bind to a specific IP address and port
wssh --address='192.168.83.129' --port=8888
wssh --address='0.0.0.0' --port=8888
# Bind to a specific IP and allow only local access
wssh --address='127.0.0.1' --port=8888After starting the service, you can access it via http://192.168.0.123:8888/ or http://localhost:8888. The web page will prompt for the target machine name, port, username, and password, then establish an SSH session.
Note: To log in as the root user, edit /etc/ssh/sshd_config:
# Authentication:
LoginGraceTime 120
#PermitRootLogin prohibit-password
PermitRootLogin yes
StrictModes yesAfter modifying the configuration, reboot the Linux machine (e.g., reboot) to apply the changes.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
