Comments (12)
@tip2tail, sorry I've been out for a bit. looking at this and will fix it this week. thanks for doing the digging.
from webssh2.
Okay, so I think I see what's happening. In 0.4.7 I'm changing that schema a bit, so the example that's in main
now is dev/0.4.7.
If you change the tag of this repository to 0.4.6, the example is correct for that version and should work properly.
https://github.com/billchurch/webssh2/blob/0.4.6/app/config.json.sample
webssh2 % git status
HEAD detached at 0.4.6
nothing to commit, working tree clean
webssh2 % docker run -it --rm -p 2222:2222 -v $PWD/app/config.json.sample:/usr/src/config.json billchurch/webssh2
WebSSH2 service reading config from: /usr/src/config.json
WebSSH2 service listening on 0.0.0.0:2222
from webssh2.
@kobuki @billchurch did you find a fix for this?
I had webssh2 working, tweaked the config file and now cannot get it to run at all - even when I revert back to the initial file.
Same error
from webssh2.
I have done some digging and I have found that the built version of server/app.js
within the docker image itself differs from the defined source version in a couple of places. See higlighted below:
I worked around this by duplicating my config to match - e.g. socketio.origins
config as http.origins
As well as session.secret
and session.name
as express.secret
and express.name
respectively.
This allows the process to start, however attempting to then launch within the browser results in another error:
@billchurch is there something going wrong in the compile of the JS?
from webssh2.
Just to follow up - I have attempted to build a completely fresh version of this with docker and still get the same cursorBlink error
from webssh2.
So... as soon as you release 0.4.7, we can run the container without quirks and until then we must manually checkout 0.4.6?
from webssh2.
@kobuki probably a better way you could phrase that to the only developer working on a project for free...
The example config.json
you're pulling from main
is the development branch. the 0.4.6
tag would contain the correct example config.json (as well as the correct README).
from webssh2.
@kobuki you can feel free to pull billchurch/webssh2:main if you want the current development branch, but its probably not what you want.
from webssh2.
No, I'm thankful for every piece of free software, including yours, that I have access to. I'm saying this as someone who also works on OSS projects even here. But as one I usually try to produce a master that can be used as-is and work on feature branches otherwise. I was a little baffled on why a code that's being regularly maintained refuses to even load its config. But, no offense was intended, I shoulda chosen my wording a bit better, maybe.
In any case, I can try out webssh2 in 0.4.6 now, thanks for the hints!
from webssh2.
if you're using docker, you don't need to checkout anything. A proper config for the version is the only thing you need, which is going to be stored under the tag for that version.
from webssh2.
I updated docker page as well...
from webssh2.
@billchurch Very much appreciated and thanks for the detail on what the root cause was.
Glad to have helped!
Thanks again
M
from webssh2.
Related Issues (20)
- SCP command support required to copy file from remote server or IoT device through web ssh HOT 2
- Interactive authentication HOT 1
- How to add support for ssh key algorithm ed25519 HOT 3
- Integration with Keycloak HOT 1
- [Bug]: Special character are typed out twice on mobile
- [chore] update xterm.js to 5.1.0 HOT 2
- Public Key authentication available / contemplated? HOT 1
- [Bug]: Port increment concatenates 1 instead of adding 1 HOT 2
- CORS origin problem in post request with username and password HOT 1
- 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
- 我有ip 用户名 密码 怎么自动登录 HOT 1
- Changing terminal name in config.json for better usability
- Example of usage as interactive Web based tutorial
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.