BotDC / termux_host.sh
Gabeczkag's picture
Better SSH scripts with IP detection
06cf26e
Raw
History Blame Contribute Delete
420 Bytes
#!/data/data/com.termux/files/usr/bin/bash
echo "=== Uruchamianie SSH na telefonie ==="
pkill sshd 2>/dev/null
sshd -p 8022
echo "Adres IP telefonu:"
echo "Sprawdz w: Ustawienia > Wi-Fi > Twoja siec"
echo ""
echo "Lub uzyj: hostname -I"
hostname -I 2>/dev/null || true
echo ""
echo "Z lapka: ssh u0_a410@<IP> -p 8022"
echo ""
echo "SSH dziala na porcie 8022"
echo "Ctrl+C aby zatrzymac"
while true; do sleep 10; done