display IP for sshd
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user