8

图片

Introduction to webssh

This tool is developed using Python, you can learn more from the following address.

Official website: https://pypi.org/project/webssh/

What can webssh do? ?

Install the python environment on the linux machine, and use the command pip3 install webssh to install this module

We can log in to our linux machine on the browser web page, is it very powerful!

Features

  • Support SSH password verification, including empty passwords.
  • Support SSH public key authentication, including DSA RSA ECDSA Ed25519 key.
  • Support encryption key.
  • Support two-factor authentication (time-based one-time password)
  • Supports full-screen terminals.
  • The terminal window can be resized.
  • The default encoding of the ssh server is automatically detected.
  • Modern browsers support Chrome, Firefox, Safari, Edge, Opera.

图片

installation

pip3 install webssh

Run the service

# 直接运行wssh,使用默认8888端口
wssh
# 通过绑定IP地址和端口启动
wssh --address='192.168.83.129' --port=8888
wssh --address='0.0.0.0' --port=8888
# 通过绑定IP地址和端口启动,只允许本地地址访问
wssh --address='127.0.0.1' --port=8888

Start service effect

图片

use

Open the browser and enter http://192.168.83.129 :8888

图片

Click Connect

图片

note

After the service is started, you can access it through http://192.168.83.129 :8888/ or http://localhost :8888.

The page will ask to enter the machine name, port, user and password to log in, and then you can SSH to the specified machine.

To log in to Webssh as the root user, you must modify the configuration file vim /etc/ssh/sshd_config

Comment out #PermitRootLogin without-password add PermitRootLogin yes

# Authentication:
LoginGraceTime 120
#PermitRootLogin prohibit-password
PermitRootLogin yes
StrictModes yes

Then restart the service.

I also recommended an SSH tool developed by Chinese people in JAVA before: This domestic SSH client is very awesome! Netizens call: 666

link: https://www.cnblogs.com/yunwangjun-python-520/p/10386660.html
Author: Mr_Yun

image


民工哥
26.4k 声望56.7k 粉丝

10多年IT职场老司机的经验分享,坚持自学一路从技术小白成长为互联网企业信息技术部门的负责人。2019/2020/2021年度 思否Top Writer