Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log said: Connection lost #9

Closed
zhaowangda opened this issue Mar 27, 2018 · 4 comments
Closed

log said: Connection lost #9

zhaowangda opened this issue Mar 27, 2018 · 4 comments

Comments

@zhaowangda
Copy link

i send vars (hostname,port,username,password) to WEBSSH by javascript ,webssh Authenticate successfully,but log said connection to hostname:port lost

js button:

test js send host info to WEBSSH


Log:

(u'172.16.1.9', '22', u'root', u'root', None)
[I 180326 22:03:42 main:208] Connecting to 172.16.1.9:22
[I 180326 22:03:42 transport:1687] Connected (version 2.0, client OpenSSH_6.6.1)
[I 180326 22:03:47 transport:1687] Authentication (password) successful!
[I 180326 22:03:47 web:2063] 200 POST / (172.16.200.6) 5151.64ms
[W 180326 22:03:48 web:2063] 404 GET /favicon.ico (172.16.200.6) 3.69ms
[I 180326 22:03:50 main:119] Connection to 172.16.1.9:22 lost

@zhaowangda
Copy link
Author

js botton:

onclick="post('http://172.16.1.5/', {hostname:'172.16.1.5',port:'22',password:'root',username:'root'}); "

@huashengdun
Copy link
Owner

You need to connect to the webssh server by websocket with the worker id.
The worker only lasts for 3 seconds if no handler attached for security reason.

@zoceanbase
Copy link

我也这样,这个是什么原因导致的呢?

@huashengdun
Copy link
Owner

I have added a parameter reason to the close method of worker.
You can now see more useful log message when the worker is closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants