From f4c90fad1a3cbafc3f89dc42a03e5e80327625e8 Mon Sep 17 00:00:00 2001 From: panika Date: Mon, 23 Jun 2025 07:34:22 +0200 Subject: [PATCH] display IP for sshd --- android/.shortcuts/1sshd.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/.shortcuts/1sshd.sh b/android/.shortcuts/1sshd.sh index d188a88..45958f3 100644 --- a/android/.shortcuts/1sshd.sh +++ b/android/.shortcuts/1sshd.sh @@ -1,5 +1,9 @@ #!/data/data/com.termux/files/usr/bin/bash /data/data/com.termux/files/usr/bin/sshd + +echo "Connect at these IPs at port 8022" +ifconfig 2> /dev/null | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '[0-9.]*' + echo "We need to pause this or the sshd will be killed with Termux." read -p "press enter to continue"