Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 23:19
    Asakiz edited #956
  • 21:08
    Asakiz labeled #956
  • 21:08
    Asakiz labeled #956
  • 21:08
    Asakiz labeled #956
  • 21:08
    Asakiz opened #956
  • 21:07

    Asakiz on ssh-refactor

    wip: ssh: refactor the code Si… (compare)

  • 20:18

    gustavosbarreto on fixSassLoader

    (compare)

  • 20:18

    gustavosbarreto on master

    ui: Revert "ui: bump sass-loade… (compare)

  • 20:18
    gustavosbarreto closed #955
  • 19:58
    noreng-jg synchronize #955
  • 19:58

    noreng-jg on fixSassLoader

    ui: Revert "ui: bump sass-loade… (compare)

  • 19:54
    noreng-jg opened #955
  • 19:53

    noreng-jg on fixSassLoader

    Revert "ui: bump sass-loader fr… (compare)

  • 19:29
    leonardojoao labeled #954
  • 19:29
    leonardojoao opened #954
  • 19:29

    leonardojoao on addRouter

    gateway: add router to resend e… (compare)

  • 18:47
    gustavosbarreto edited #906
  • 16:42
    eduardoveiga synchronize #943
  • 16:42

    eduardoveiga on refactor_errors

    api: returns errors from mongo … (compare)

  • 13:49
    gustavosbarreto closed #937
Fabiano da Rosa Gomes
@gomes-fdr
interessante - era justamente essa a nossa dúvida, pq nosso desejo é justamente controlar os processos e nossas apps que estaram rodando fora do container do agent
Luis Gustavo S. Barreto
@gustavosbarreto
Fizemos isso utilizando uma feature de "namespace" do kernel linux
Fabiano da Rosa Gomes
@gomes-fdr
grato Luis, vou levar isso adiante para iniciarmos alguns testes praticos
Luis Gustavo S. Barreto
@gustavosbarreto
Se tiver alguma dúvida no processo pode ir largando aqui que nós vamos respondendo
Fabiano da Rosa Gomes
@gomes-fdr
Muito obrigado pela atenção Luis, vamos testar e te dou um retorno na sequencia - abraço!
Otavio Salvador
@otavio
@gustavosbarreto eu revisei a PR da Domarys mas a PR nao apareceu aqui. Tinhamos que vincular os outros repositorios aqui tb.
gapaluec
@gapaluec
Can I replace port 22 with any other port number? And what all changes are required to do the same?
Luis Gustavo S. Barreto
@gustavosbarreto
@gapaluec Hi
Otavio Salvador
@otavio
@gapaluec you wish to change the port on the server side, or on the target side?
Luis Gustavo S. Barreto
@gustavosbarreto
@gapaluec Edit docker-compose.yml file and replace the port 22 with something else in ports section of ssh service
gapaluec
@gapaluec

@gustavosbarreto I did change the docker-compose.yml, but still the endpoint API was returning 22
{"api":"localhost", "ssh": "localhost:22", "mqtt": "localhost:1883"}

Also, there should be an option to change "localhost" returned by endpoint to a valid domain name / ip address... As I was trying shellhub on AWS with a domain name.

Luis Gustavo S. Barreto
@gustavosbarreto
@gapaluec
Luis Gustavo S. Barreto
@gustavosbarreto
@gapaluec can you please open a issue for this?
Luis Gustavo S. Barreto
@gustavosbarreto
Luis Gustavo S. Barreto
@gustavosbarreto
surfinside
@surfinside
Hello,
I would like mount an ssh tunnel, unfortunately I have an error
channel 2: open failed: unknown channel type: unsupported channel type
debug1: channel 2: free: direct-tcpip: listening port 443 for 10.10.10.1 port 443, connect from 127.0.0.1 port 51926 to 127.0.0.1 port 443, nchannels 4
channel 3: open failed: unknown channel type: unsupported channel type
debug1: channel 3: free: direct-tcpip: listening port 443 for 10.10.10.1 port 443, connect from 127.0.0.1 port 51927 to 127.0.0.1 port 443, nchannels 3
MyPC - > INTERNET -> ShellHub <- INTERNET <- Router (10.10.10.1/24) <- RPi (Up on ShellHub (10.10.10.xxx/24))
MyPC:443 = https://10.10.10.1
I thank you in advance
Luis Gustavo S. Barreto
@gustavosbarreto
@surfinside Are you trying to create a tunnel through ShellHub server?
I think this is not supported by ShellHub
Accoring to this the supported channel types:
"tcpip-forward":        forwardHandler.HandleSSHRequest,
"cancel-tcpip-forward": forwardHandler.HandleSSHRequest,
"tcpip-forward-connected":
direct-tcpip is not supported
surfinside
@surfinside

@gustavosbarreto Thank you for your reply
Yes, i would like create a ssh tunnel with a other device on the LAN of device up in shellhub and mypc with internet.
Ex : MyPC - > INTERNET -> ShellHub <- INTERNET <- RPi (Up on ShellHub (10.10.10.101/24)) | Other RPi with nginx 80&443 (10.10.10.102/24)
mypc:9999 = 10.10.10.102:443
mypc:9998 = 10.10.10.102:80

ssh -L 9999:10.10.10.102:443 pi@rpiname.usershellhub@subname.mydomain.com

What do you think about this ? This is supported by ShellHub ?
https://wiki.archlinux.org/index.php/VPN_over_SSH

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?