MisterTea / EternalTerminal

Re-Connectable secure remote shell
https://mistertea.github.io/EternalTerminal/
Apache License 2.0
3.03k stars 175 forks source link

et linux client cannot connect to localhost running etserver #567

Open arkus352 opened 1 year ago

arkus352 commented 1 year ago

To test my linux installation, I tried doing et localhost but that failed with Error starting ET process through ssh, please make sure your ssh works first.

Here are the steps I've tried so far to debug:

  1. ssh localhost works - I have passwordless ssh setup, not sure if that matters.
  2. Choice of client shell (sh/bash) does not make a difference.
  3. et -v 9 --logtostdout localhost returns unmatched " - I cannot make out what this refers to.
> [INFO 2023-02-28 03:13:49,733 client-main ParseConfigFile.hpp:1400] unsupported config line: IdentityFile /home/xxxx/.ssh/id_rsa, ignored
> [INFO 2023-02-28 03:13:49,733 client-main ParseConfigFile.hpp:1400] unsupported config line: ServerAliveInterval 120, ignored
> [INFO 2023-02-28 03:13:49,734 client-main ParseConfigFile.hpp:1181] /etc/ssh/ssh_config.d/*.confnot found
> [INFO 2023-02-28 03:13:49,734 client-main TerminalClientMain.cpp:198] Parsed ssh config file, connecting to localhost
> [V1 2023-02-28 03:13:49,734 client-main TerminalClientMain.cpp:15] Connecting
> [V4 2023-02-28 03:13:49,735 client-main TcpSocketHandler.cpp:83] Before selecting sockFd
> [V4 2023-02-28 03:13:49,735 client-main TcpSocketHandler.cpp:87] sockFd 8is selected8
> [INFO 2023-02-28 03:13:49,735 client-main TcpSocketHandler.cpp:96] Connected to server: localhost using fd 8
> [V1 2023-02-28 03:13:49,736 client-main UnixSocketHandler.cpp:166] Closing connection: 8
> Unmatched '''.
> Unmatched '''.
> Error starting ET process through ssh, please make sure your ssh works first
jshort commented 1 year ago

Anything in your server logs (/tmp/etserver-.*)?

MisterTea commented 1 year ago

It looks like it's failing to parse your ssh config

On Thu, Mar 2, 2023, 5:31 PM James Short @.***> wrote:

Anything in your server logs (/tmp/etserver-.*)?

— Reply to this email directly, view it on GitHub https://github.com/MisterTea/EternalTerminal/issues/567#issuecomment-1452721278, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACK5P6OYUJ7OH6M4CUH3JDW2EUUDANCNFSM6AAAAAAVLDHBWQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

arkus352 commented 1 year ago

I moved my .ssh out of the way - this did not help.

Here are the server side logs:

INFO 2023-02-28 02:57:23,246 etserver-main TerminalServerMain.cpp:185] In child, about to start server.
[INFO 2023-02-28 02:57:23,247 etserver-main TcpSocketHandler.cpp:224] Listening on 0.0.0.0:2022/2/1/6
[INFO 2023-02-28 02:57:23,247 etserver-main TcpSocketHandler.cpp:224] Listening on 0.0.0.0:2022/10/1/6
[INFO 2023-02-28 02:57:23,247 etserver-main TerminalServer.cpp:23] Creating server
[WARNING 2023-02-28 02:57:49,134 server-clientHandler ServerConnection.cpp:127] Error handling new client: Failed a call to readAll
[WARNING 2023-02-28 02:58:03,467 server-clientHandler ServerConnection.cpp:127] Error handling new client: Failed a call to readAll
[WARNING 2023-02-28 03:02:11,210 server-clientHandler ServerConnection.cpp:127] Error handling new client: Failed a call to readAll
[WARNING 2023-02-28 03:02:44,498 server-clientHandler ServerConnection.cpp:127] Error handling new client: Failed a call to readAll
[WARNING 2023-02-28 03:05:51,742 server-clientHandler ServerConnection.cpp:127] Error handling new client: Failed a call to readAll
[WARNING 2023-02-28 03:13:49,736 server-clientHandler ServerConnection.cpp:127] Error handling new client: Failed a call to readAll
[WARNING 2023-02-28 03:22:08,957 server-clientHandler ServerConnection.cpp:127] Error handling new client: Failed a call to readAll
[WARNING 2023-03-03 05:00:38,968 server-clientHandler ServerConnection.cpp:127] Error handling new client: Failed a call to readAll

Here are the client side logs:

Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
Unmatched '''.
Unmatched '''.
Shutting down sentry
MisterTea commented 1 year ago

What about the other locations for ssh_config? Or maybe your et.cfg is messed up?

Some config file has a spurious ' character

On Thu, Mar 2, 2023, 11:04 PM arkus352 @.***> wrote:

I moved my .ssh out of the way - this did not help.

Here are the server side logs:

INFO 2023-02-28 02:57:23,246 etserver-main TerminalServerMain.cpp:185] In child, about to start server. [INFO 2023-02-28 02:57:23,247 etserver-main TcpSocketHandler.cpp:224] Listening on 0.0.0.0:2022/2/1/6 [INFO 2023-02-28 02:57:23,247 etserver-main TcpSocketHandler.cpp:224] Listening on 0.0.0.0:2022/10/1/6 [INFO 2023-02-28 02:57:23,247 etserver-main TerminalServer.cpp:23] Creating server [WARNING 2023-02-28 02:57:49,134 server-clientHandler ServerConnection.cpp:127] Error handling new client: Failed a call to readAll [WARNING 2023-02-28 02:58:03,467 server-clientHandler ServerConnection.cpp:127] Error handling new client: Failed a call to readAll [WARNING 2023-02-28 03:02:11,210 server-clientHandler ServerConnection.cpp:127] Error handling new client: Failed a call to readAll [WARNING 2023-02-28 03:02:44,498 server-clientHandler ServerConnection.cpp:127] Error handling new client: Failed a call to readAll [WARNING 2023-02-28 03:05:51,742 server-clientHandler ServerConnection.cpp:127] Error handling new client: Failed a call to readAll [WARNING 2023-02-28 03:13:49,736 server-clientHandler ServerConnection.cpp:127] Error handling new client: Failed a call to readAll [WARNING 2023-02-28 03:22:08,957 server-clientHandler ServerConnection.cpp:127] Error handling new client: Failed a call to readAll [WARNING 2023-03-03 05:00:38,968 server-clientHandler ServerConnection.cpp:127] Error handling new client: Failed a call to readAll

Here are the client side logs:

Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts. Unmatched '''. Unmatched '''. Shutting down sentry

— Reply to this email directly, view it on GitHub https://github.com/MisterTea/EternalTerminal/issues/567#issuecomment-1452978550, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACK5P4CNWDAQT4BP4UNA7TW2F3UZANCNFSM6AAAAAAVLDHBWQ . You are receiving this because you commented.Message ID: @.***>