display IP for sshd

This commit is contained in:
2025-06-23 07:34:22 +02:00
parent 038880829c
commit f4c90fad1a

View File

@@ -1,5 +1,9 @@
#!/data/data/com.termux/files/usr/bin/bash #!/data/data/com.termux/files/usr/bin/bash
/data/data/com.termux/files/usr/bin/sshd /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." echo "We need to pause this or the sshd will be killed with Termux."
read -p "press enter to continue" read -p "press enter to continue"