Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 21 22:00
    eduardoveiga assigned #1056
  • Jun 21 22:00
    eduardoveiga ready_for_review #1049
  • Jun 21 21:02
    leonardojoao synchronize #789
  • Jun 21 21:02

    leonardojoao on tokenNamespace

    ui: Add support for API token (compare)

  • Jun 21 20:55
    eduardoveiga labeled #1056
  • Jun 21 20:55
    eduardoveiga labeled #1056
  • Jun 21 20:54
    eduardoveiga opened #1056
  • Jun 21 20:52

    eduardoveiga on lintPkg

    devscripts: execute linter on p… (compare)

  • Jun 21 19:17
    eduardoveiga synchronize #1049
  • Jun 21 19:17

    eduardoveiga on security

    api: change security settings f… (compare)

  • Jun 21 19:14
    eduardoveiga synchronize #1049
  • Jun 21 19:14

    eduardoveiga on security

    api: change security settings f… (compare)

  • Jun 21 19:09
    eduardoveiga synchronize #1049
  • Jun 21 19:09

    eduardoveiga on security

    api: change security settings f… (compare)

  • Jun 21 19:01
    eduardoveiga synchronize #1049
  • Jun 21 19:01

    eduardoveiga on security

    api: change security settings f… (compare)

  • Jun 21 18:48
    leonardojoao synchronize #789
  • Jun 21 18:48

    leonardojoao on tokenNamespace

    ui: Add support for API token (compare)

  • Jun 21 18:39

    gustavosbarreto on v0.7.1-rc.2

    (compare)

  • Jun 21 17:57

    noreng-jg on billing-rebase

    api: add store methods to billi… api: update mocks gateway: add billing webhook co… and 2 more (compare)

surfinside
@surfinside
Hello, i found a solution with
https://github.com/sshuttle/sshuttle
I love ShellHub :)
it's possible to add https with certbot ?
For mongodb, why not add persistent data ?
On Gateway or Ui docker, it's possible to add fail2ban (SSH & Ngnix Jail) ?
Thank you
Luis Gustavo S. Barreto
@gustavosbarreto

t's possible to add https with certbot ?

@surfinside HTTPS support is on our roadmap (end Q1 2020)

For mongodb, why not add persistent data ?

@surfinside You can do this by extending the docker-compose file

Luis Gustavo S. Barreto
@gustavosbarreto

On Gateway or Ui docker, it's possible to add fail2ban (SSH & Ngnix Jail) ?

@surfinside Can you please explain this in more detail?

I love ShellHub :)

@surfinside I'm really appreciate and very pleased to hear that you enjoyed it

Otavio Salvador
@otavio
:-)
haydenbarton96
@haydenbarton96
Hi, Im trying to run 'docker-compose up id' and it says its running on port 22 but i changed the port to 2222 in docker-compose.yml and it doesnt seem to be changing (im trying to keep the openssh port as 22) am i doing something wrong?
Luis Gustavo S. Barreto
@gustavosbarreto
@haydenbarton96 change the SHELLHUB_SSH_PORT variable inside .env file instead of docker-compose.yml
Revert the changes that you made to docker-compose.yml and edit the .env
haydenbarton96
@haydenbarton96
Thank you for the fast reply! However i cant find a .env file, just the docker-compose .yml and .dev.yml files, is it in a different directory to shellhub-v0.1.1?
Ah I found it, the file was just hidden, i just used nano .env in that directory. No errors and everything says its done, but nothing on the localhost, it is port 80 or 8080 isnt it?
haydenbarton96
@haydenbarton96
I get a login screen on port 18083 but the account i added successfully doesnt login and shows "username not found"
Luis Gustavo S. Barreto
@gustavosbarreto
@haydenbarton96 The WebUI is available at http://localhost
@haydenbarton96 Can you please paste the output of docker-compose logs ui?
haydenbarton96
@haydenbarton96
I'm running on a raspberry pi and have been connected through ssh from my pc on the same network, going to the ip of the pi with port 80 or without any port doesnt show anything, but going to the ip of the pi with port 18083 shows the EMQ dashboard, ill post logs now
Attaching to shellhub-v011_ui_1
ui_1 | standard_init_linux.go:211: exec user process caused "exec format error"
ui_1 | standard_init_linux.go:211: exec user process caused "exec format error"
ui_1 | standard_init_linux.go:211: exec user process caused "exec format error"
haydenbarton96
@haydenbarton96
@gustavosbarreto im googling the error now too, but strange that no errors at all came up during the entire install of docker, docker compose and shellhub
Luis Gustavo S. Barreto
@gustavosbarreto
@haydenbarton96 are you running ShellHub server on a RaspberryPi?
ShellHub server is intended to run on x64 (standard PC or VPS like AWS, Azure, DO, etc..)
On your Pi you should install ShellHub Agent instead
Luis Gustavo S. Barreto
@gustavosbarreto
Think ShellHub as your centralized SSH server for all your Pi fleet
I admit that our documentation is not the best, but we appreciate your feedback and will try to improve the documentation whenever we can
Luis Gustavo S. Barreto
@gustavosbarreto
I just released the next major version of ShellHub (v0.2.0) with significant improvements. Check it out
haydenbarton96
@haydenbarton96
Yes im running on the raspberry pi 4 with 64 bit ubuntu, i will look into shellhub agent and shellhub v0.2.0, thank you :)
Rohit Joshi
@rjoshi
I am running ShellHub V0.0.5 what is the proper way to update server and Agent to new version?
With V0.0.5 I often face an issue where Device shows as online on the server but when I try to SSH session fails. Only way to recover from this is to restart agent container at the device. Is this a known issue?
Luis Gustavo S. Barreto
@gustavosbarreto
@rjoshi I'm sorry for the late reply
To update the server you need to checkout the latest released tag (v0.2.0)
Luis Gustavo S. Barreto
@gustavosbarreto
Then stop the server by running 'docker-compose stop' and start it again running 'docker-compose up - d'
To update the agent you need to it manually
Follow these steps:
Stop the container: docker stop shellhub
Remove the container: docker rm shellhub
Luis Gustavo S. Barreto
@gustavosbarreto
Open the new Web UI and add the device by clicking on 'Add device' button
Automatic updates is on our roadmap
Luis Gustavo S. Barreto
@gustavosbarreto
(first stable release maybe)
Rohit Joshi
@rjoshi
Thanks @gustavosbarreto , I will give it shot to check if that resolve unresponsive SSH issue. Good thing I have a backup SSH tunnel established to help me through this.
One question when I updating the server would it retain the Mango DB state? Specifically, I renamed about 50 devices would I need to redo that effort manually?
Radislav Myasnikov
@chamaloriz
hey, I'm trying to run shellhub but when I try to add a user it works but I can't login where should I start to try to fix this :)
Luis Gustavo S. Barreto
@gustavosbarreto

@chamaloriz In the ShellHub working dir please run the following command (and paste output here):

docker-compose exec mongo mongo --eval "db.users.find()" main

Radislav Myasnikov
@chamaloriz
{ "_id" : ObjectId("5e74c21a777c311f7e8bad99"), "username" : "chamaloriz", "password" : "455a8ce7faa8618715a6c6ee5df3ba32407fac0bf06c420850e29ab371b70689", "tenant_id" : "97AE3A69-B861-47E7-9618-CF4DCDFE7888" }
{ "_id" : ObjectId("5e74c2cddda5993488f36c42"), "username" : "chamalorizz", "password" : "455a8ce7faa8618715a6c6ee5df3ba32407fac0bf06c420850e29ab371b70689", "tenant_id" : "4B8120E7-7C1B-4816-8655-0969B3C4E98F" }
{ "_id" : ObjectId("5e74c595ce24ae5c30e9a910"), "username" : "a", "password" : "455a8ce7faa8618715a6c6ee5df3ba32407fac0bf06c420850e29ab371b70689", "tenant_id" : "C786671F-0F24-4B67-B420-6FD970A5513D" }
{ "_id" : ObjectId("5e74c5ab1b15bfe9e46a1db1"), "username" : "b", "password" : "24c47e36c56a3c8ada8c4d6a7d14de453551b6457e01c8c20998825eb5695633", "tenant_id" : "D76E41C7-8571-4511-86D0-F8E5E85EF641" }
{ "_id" : ObjectId("5e74c790cba14ac9576beb89"), "username" : "d", "password" : "260c9432b5793e91cb95ec92ce0c5f39dc84aeadcabe5bc3aa5b0f9bea36a3cf", "tenant_id" : "21D774D3-B9C8-4CE1-9BBD-4FB916A51C9B" }
{ "_id" : ObjectId("5e74c7bdc81ab932dae369c3"), "username" : "l", "password" : "bb938b96d8b7e2a3bc3d31a0205d87d8d4af0dd5d00b4a6b111eb4d8a19c4d7f", "tenant_id" : "3DBB01CE-17FA-4406-9FA2-C202617B5474" }
{ "_id" : ObjectId("5e74c8c2eac3d49d1534ecc3"), "username" : "k", "password" : "58bd14f931ed4a41c54f97910f4089500779b3213972eba34c37803de2394073", "tenant_id" : "35A2DA81-5BF2-4A61-A9E5-2B977D09AB58" }
{ "_id" : ObjectId("5e74cf658f9870e12f1cdfc3"), "username" : "admin", "password" : "455a8ce7faa8618715a6c6ee5df3ba32407fac0bf06c420850e29ab371b70689", "tenant_id" : "FFDD8FDA-F9F5-403E-99C4-EAB190C1254E" }
{ "_id" : ObjectId("5e74cf7ed5cf7ed028dcdcec"), "username" : "adminis", "password" : "455a8ce7faa8618715a6c6ee5df3ba32407fac0bf06c420850e29ab371b70689", "tenant_id" : "AF927BC1-B6DC-4CF3-9AD4-29DD72307289" }
{ "_id" : ObjectId("5e74cf8debda04afa2a9a76b"), "username" : "test", "password" : "455a8ce7faa8618715a6c6ee5df3ba32407fac0bf06c420850e29ab371b70689", "tenant_id" : "AC9F4316-9AB7-4984-94F1-25872B484581" }
I tested it a lot :p
Luis Gustavo S. Barreto
@gustavosbarreto
@rjoshi In the newer versions the database state is retained
Radislav Myasnikov
@chamaloriz
I checked in the docker shellhub the private and public key thinking that it could be because of that
Luis Gustavo S. Barreto
@gustavosbarreto
What is the password of test user?
Radislav Myasnikov
@chamaloriz
a I think wait let me generate a new user and send you the result
Luis Gustavo S. Barreto
@gustavosbarreto
ok
Radislav Myasnikov
@chamaloriz
Screenshot 2020-03-20 at 17.45.43.png
{ "_id" : ObjectId("5e74f330f68a65ba43323785"), "username" : "chamaloriz", "password" : "808239727725960f0905042c0198369fdc5a3de2aeb853d297d7fc0b9cce121e", "tenant_id" : "7E4D1B6A-01A8-4684-8CC0-D0297DABC0AC" }
I deleted the last project and ran it again
Screenshot 2020-03-20 at 17.47.08.png