Comments (1)
@zhangxiaoyy 参考这个,需要在config配置文件里打开overridebasic,
再app.js 文件 // app.use(basicAuth); 注释掉
routes.js的connect方法里
req.session.username = req.query.username;
req.session.userpassword = req.query.userpassword;
手动从URL取传过来的username和密码
Please refer to this. You need to open "overridebasic" in the config configuration file.
Then, comment out "// app.use(basicAuth);" in the app.js file.
In the connect method of routes.js,
req.session.username = req.query.username;
req.session.userpassword = req.query.userpassword;
Manually retrieve the username and password passed from the URL.
from webssh2.
Related Issues (20)
- Example of a post request HOT 1
- Getting Authentication failure error even when I am passing username and password in config.json HOT 1
- [idea]auto copy & paste
- Getting Host not found error when try to connect with https HOT 1
- Cross Site Script (XSS) attack on at least the `header` url param
- Proxy SSH connection to multiple servers from the same browser
- Jumpserver connection how-to
- [Bug]: long text display bug HOT 3
- Changing terminal name in config.json for better usability
- Example of usage as interactive Web based tutorial
- how to tracking cmd on the server
- [Error]: Error running install script for optional dependency: "/Users/~/Projects/webssh2/app/node_modules/cpu-features: Command failed.
- Connecting by private key ask about passphrase HOT 1
- authorized_keys HOT 1
- Webssh2 doesn't support ssh config files
- How should I use a proxy to connect to ssh(我应该怎么使用代理连接ssh) HOT 1
- How to design a CLI-based client for tunneling HOT 2
- Can we integrate this with Vuejs HOT 2
- How to add please wait on main page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webssh2.