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
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。