import repository from arizona
[raven.git] / demo / pingpong / scripts / copykeys.sh
1 #!/bin/bash
2
3 for i in {1..35}; do
4     mkdir /home/guest$i/.ssh
5     cp guest$i /home/guest$i/.ssh/id_rsa
6     cp guest$i.pub /home/guest$i/.ssh/id_rsa.pub
7     cp guest$i.pub /home/guest$i/.ssh/authorized_keys
8     chown -R guest$i /home/guest$i/.ssh
9     chmod 0600 /home/guest$i/.ssh/id_rsa
10     chmod 0640 /home/guest$i/.ssh/id_rsa.pub
11     chmod 0600 /home/guest$i/.ssh/authorized_keys
12 done