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

no config after installing with apt #59

Open
rubo77 opened this issue Jan 25, 2021 · 5 comments
Open

no config after installing with apt #59

rubo77 opened this issue Jan 25, 2021 · 5 comments

Comments

@rubo77
Copy link

rubo77 commented Jan 25, 2021

I installed version 1.1-2 via apt on Ubuntu 20.04.

after install, there is only an empty folder /etc/endlessh

I added your config example from the Readme, changed the port to 2223 and restarted the service, but still there is no effect on that port when trying ssh -p 2223

@meffie96
Copy link

Same here. Even after creating the config file manually, it seems to be ignored.

@trallnag
Copy link

Have you fixed the issue? It has been working for me both on Ubuntu 20.04 and now Ubuntu 21.04. Though I am using Endlessh 1.1.

debug1: kex_exchange_identification: banner line 1: [Z=N
debug1: kex_exchange_identification: banner line 2: ogBUe>=v~5o(|d
debug1: kex_exchange_identification: banner line 3: afgfX_t

I'm using Ansible, but it could still be helpful:

https://github.com/trallnag/ansible-role-endlessh

@meffie96
Copy link

I use a simple workaround; i changed my ssh-port and started a docker container for endlessh with port 22 forwarded to 2222 like this:
docker run -ti --restart=always -d --name endlessh -p 22:2222 ubuntu bash -c "apt-get update && apt-get install endlessh && endlessh -v"

But this doesn´t solve the problem with the ignored .config file.

@trallnag
Copy link

what do the logs say? 22 is not the default port endlessh is listening on

@rubo77
Copy link
Author

rubo77 commented Sep 1, 2021

I am not sure, what went wrong, I purged it and reinstalled it (endlessh_1.1-5), then it seems to work on Ubuntu 21.04

sudo apt purge endlessh
sudo rmdir /etc/endlessh
sudo apt install endlessh
sudo service endlessh start

$ ssh localhost -p 2222 -v
OpenSSH_8.4p1 Ubuntu-5ubuntu1.1, OpenSSL 1.1.1j  16 Feb 2021
debug1: ...
debug1: Local version string SSH-2.0-OpenSSH_8.4p1 Ubuntu-5ubuntu1.1
debug1: kex_exchange_identification: banner line 0: IURe~w>/(Sbd{\\:"
debug1: kex_exchange_identification: banner line 1: H;!pVJ5XOa1[

although there is again the empty folder in /etc/endlessh

@rubo77 rubo77 closed this as completed Sep 1, 2021
@rubo77 rubo77 reopened this Sep 1, 2021
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