Skip to content

Instantly share code, notes, and snippets.

@MaiLinhGroup
Created February 4, 2019 22:26
Show Gist options
  • Save MaiLinhGroup/ba106b1eb39d228611552b109e797fe2 to your computer and use it in GitHub Desktop.
Save MaiLinhGroup/ba106b1eb39d228611552b109e797fe2 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Setup ssh:"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
rm ssh
touch ssh
echo "some text to enable ssh on raspbian jessie" > ssh
df -h
read -p "path to boot from sd card:" bootpath
cp ssh $bootpath/ssh
echo "-------------------------"
cat $bootpath/ssh
echo "-------------------------"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment