Commit 42f6dc99 authored by Carl Hetherington's avatar Carl Hetherington

Same for copy_keys.sh.

parent 8db51f2e
......@@ -2,5 +2,8 @@
if [ ! -f "$HOME/.ssh/id_rsa.pub" ]; then
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
fi
sudo ifconfig enp0s26u1u4 10.42.0.1 up
device=$(cat /proc/net/dev | grep enp0 | awk '{print $1}' | sed -e "s/://g")
sudo ifconfig $device 10.42.0.1 up
ssh-copy-id robot@10.42.0.3
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment