butlerx / wetty

Terminal in browser over http/https. (Ajaxterm/Anyterm alternative, but much better)
https://butlerx.github.io/wetty
MIT License
4.26k stars 670 forks source link

Cannot use allow-remote-hosts and user at the same time from browser URL #463

Open steelxt opened 1 year ago

steelxt commented 1 year ago

Describe the bug Using docker container, I'm trying to use username and host from URL at the same time, but is always setting root as user: root @xx.xx.xx.xx

To Reproduce Steps to reproduce the behavior:

  1. docker run -i -t --rm -p 3000:3000 wettyoss/wetty --ssh-host=192.168.1.37 --allow-remote-hosts
  2. open browser : http://localhost:3000/wetty/ssh/ubuntu?host=10.0.100.14 3: as a result : root@10.0.100.14's password: Expected behavior user should be ubuntu rather than root user: ubuntu@10.0.100.14's password:

Screenshots image

Desktop (please complete the following information):

arjun-udaan commented 9 months ago

stuck with the same issue? any help here?

fuchsg commented 5 months ago

Just use http://localhost:3000/wetty/ssh/ubuntu?host=ubuntu@10.0.100.14

arjun-udaan commented 5 months ago

Just use http://localhost:3000/wetty/ssh/ubuntu?host=ubuntu@10.0.100.14

This worked out, although the response was a little late.