Skip to content

Instantly share code, notes, and snippets.

@wenxiang
Last active April 5, 2023 03:10
Show Gist options
  • Save wenxiang/5fe931b873dadcf80fa2ff784a6ebd1a to your computer and use it in GitHub Desktop.
Save wenxiang/5fe931b873dadcf80fa2ff784a6ebd1a to your computer and use it in GitHub Desktop.
#!/bin/sh
# install apt dependencies
apt install ssh
# set up ssh and run daemon
mkdir -p ~/.ssh /var/run/sshd
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpZ4pmpJBNd2LDqE6JqQ1GuhM66OR7Q2LvlvLM2v4VN+OgMGV2WERVrJnwjo2BLlRceR2OaJVlQiHWzfwA+zVdX8znaebJ2/jHt4uXTY45uwRCHraL93swHAfbywpk4WDMviHq7bcUrW76MjQ1j+FPXmeISmhAY57NP3vP4CKnMwYbQC2ZHZRUo2FNOSA1TNJoz3ZMvAn0gWc9Uy4ohY45l+4YuPr2ASvwaqJdB0TY6azUdmwla8aH/zp94BVfrcEhOVR4SVzy08QuqJMmMxs/H9Evvvdwomj4QDyyb2JEh9ekHTmHzMcKmiXpqH8eJYP2ytL4MjDeECN8x7s71zdR" > ~/.ssh/authorized_keys
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
/etc/init.d/ssh start
# python dependencies
pip install pyngrok
# tmux
git clone --recursive https://github.com/tony/tmux-config.git ~/.tmux > /dev/null
rm ~/.tmux.conf
ln -s ~/.tmux/.tmux.conf ~/.tmux.conf
echo "Done :)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment