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

SSH into LAN addresses causes termux to hang #1250

Closed
KoraggKnightWolf opened this issue Sep 16, 2019 · 1 comment
Closed

SSH into LAN addresses causes termux to hang #1250

KoraggKnightWolf opened this issue Sep 16, 2019 · 1 comment

Comments

@KoraggKnightWolf
Copy link

Problem description
When using ssh to log into a LAN address, in my case 192.168.160.130 it leads termux to hang after the cursor starts a new line. Nothing is printed at all, nothing SSH related or at all, and the application must be closed via the Exit option on the notification.

Steps to reproduce

  1. Setup a Debian 9 VM && apt-get install openssh-server

  2. run 'ip a' to obtain the lan address: example output:
    root@localhost:/home/ratbox# ip a
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
    valid_lft forever preferred_lft forever
    2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0c:29:60:72:a9 brd ff:ff:ff:ff:ff:ff
    inet 192.168.160.130/24 brd 192.168.160.255 scope global dynamic ens33
    valid_lft 1718sec preferred_lft 1718sec
    inet6 fe80::20c:29ff:fe60:72a9/64 scope link
    valid_lft forever preferred_lft forever

  3. in /etc/ssh/sshd_config disallow root login and restarted the ssh server:
    PermitRootLogin no

  4. on termux, run (in this example): ssh [email protected] (replace username with a username other than root)

  5. Observe how the termux cursor goes to a new line, but does not display anything. All entered commands are shown but do not trigger anything at all. This state persists until the app is forcebly closed.

Expected behavior
An SSH connection is at least attempted and, with correct credentials, successfully established..

Additional information
Post output of command termux-info.
$ termux-info
Updatable packages:
All packages are up to date
Subscribed repositories:
https://dl/bintry.com/grimler/science-packages-24 science/stable
https://dl/bintry.com/grimler/game-packages-24 games/stable
https://dl/bintry.com/grimler/termux-packages-24 stable/main
System information:
Linux localhost 4.4.111-16070901 #1 SMP PREEMPT Tue Jul 2 16:00:01 KST 2019 aarch64 Android
Termux-packages arch:
aarch64
Android version:
9
Device manufacturer:
samsung
Device model:
SM-A750FN
$

@KoraggKnightWolf
Copy link
Author

Problem appears to be due to ports not being opened on the router, closing this as not termux related issue. Thank You for Your time regardless!

@ghost ghost locked and limited conversation to collaborators Oct 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant