-
Notifications
You must be signed in to change notification settings - Fork 59
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
ssh error #75
Comments
The reason was that openssh-server was not installed on the server computer.
Now the ssh connection is established, but I don't know what to do with it or how to use the server internet. |
The proxy server is refusing connections. |
Do you have SSH running while you try to connect with Firefox? Does SSH work? |
Client or server? There is silence in the client ssh terminal. Something is running with no status output. I try to make a request for some site through the browser. Exactly two minutes later the ssh connection is broken. In the logs after the triplet. Server log (tuntox): Server log (sshd-server): мая 10 21:50:02 alt systemd[1]: Starting sshd.service - OpenSSH server daemon... /etc/openssh/sshd_config: Server ssh localhost: |
Client log (tuntox): Client log (ssh-client): Client log (sshd): denis@systemp:~$ sudo systemctl restart sshd мая 10 22:02:13 systemp systemd[1]: Starting OpenBSD Secure Shell server... Client ssh localhost: |
I'm testing in a host (Xubuntu 22.04, systemp) and a virtual machine (ALT Linux LXQt Sisyphus, alt, NAT network). tuntox and toxcore are self-built new. The username is the same everywhere (denis). IP is of course the same, because the network is NAT (but I tried also connecting VPN in the virtual machine). Xubuntu 22.04 (host) - client The client browser (Basilisk, socks5 proxy 127.0.0.1:1234, dns through socks) immediately shows an error: |
Here's how I compiled toxcore and tuntox:
I see that the command -L 2222:127.0.0.1:22 redirects 2222 client port to 22 server port. Client: but still no connection. And this is even worse than ssh, which at least tried, judging by the logs. I see that the ssh connection terminates with a timeout. But why?
Why? It works with toxvpn. It connects two computers via Tox and provides local IPs through which you can run any services. However, I don't see local IPs in tuntox. But the connection in toxvpn sometimes breaks (a friend goes offline, even though it is not). |
Instead of my new build, I used your build (with toxcore 0.2.13) and it worked. There must be some incompatibility with the new toxcore. I also added TUNTOX_SHARED_SECRET=hello ssh allows you to control another computer. I think it can be replaced by a proxy like gost. |
https://github.com/ginuerzh/gost/releases/download/v2.11.5/gost-linux-amd64-2.11.5.gz Server (Terminal 1): Server (Terminal 2):
Client:
Browser proxy: socks5 127.0.0.1:5556 ssh isn't necessary. gost is safer for internet sharing. You can use another utility instead of gost. Remember about port redirection (5556 > 5555). Below 1024 requires root. |
From your logs, it looks like you get a lot of timeouts in the SSH session, so the link Tox formed between computers is probably very slow. My build vs yours -> I don't know, maybe you had a different version of c-toxcore or tuntox on one of the machines? I don't get it. The version in master branch of tuntox is a development one right now, I omited an important field in initial protocol design and am fixing it now. So anything built with master will not work with 0.0.x versions - the fix is not backwards comptabile. |
tuntox/toxcore is the same on both systems, but new. I have seen warning when they were different only once. |
When I run on the client:
sudo ssh -p 2222 denis@localhost
I get on the server:
and nothing, doesn't work.
I would like to use another computer's internet via proxy. Like commercial vpn offer.
The text was updated successfully, but these errors were encountered: