Termux Notes
1 SSH 1.1 Setup SSH (SCRIPT) Copy Code #!/bin/bash # Upgrade Termux packages pkg upgrade -y # Install OpenSSH pkg install openssh -y # Install termux-api pkg install termux-api -y # Set password for SSH automatically echo -e "123456\n123456" | passwd # Retrieve and display the username USERNAME=$(whoami) echo "Your username is: $USERNAME" # Retrieve and display the IP address IPADDR=$(termux-wifi-connectioninfo | awk -F'"ip":' '{print $2}' | awk -F'"' '{print $2}' | tr -d '[:space:]') echo "Your IP address is: $IPADDR" # Start the SSH server sshd echo "OpenSSH has been installed and the server has been started." echo "You can connect using the following:" echo "Username: $USERNAME" echo "IP Address: $IPADDR" # Provide the SSH command for the user echo "To connect via SSH, use the following command:" echo "ssh $USERNAME@$IP...