install-esp-device.sh

← Back to Scripts
#!/bin/bash

echo "updating/upgrading...."
sudo apt update -y && sudo apt upgrade -y

echo "installing sshuttle..."
sudo apt install sshuttle -y

echo "installing nmap..."
sudo apt install nmap -y

echo "installing tailscale..."
curl -fsSL https://tailscale.com/install.sh | sh

# remove rename_user.conf to stop "Please note that SSH may
# not work until a valid user has been set up." warning
echo "Removing rename_user.conf..."
sudo rm /etc/ssh/sshd_config.d/rename_user.conf

echo "logging into tailscale..."
sudo tailscale login --ssh=true