-
Notifications
You must be signed in to change notification settings - Fork 0
/
init
39 lines (33 loc) · 750 Bytes
/
init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#rm -rf ~/.ssh
echo ""
echo ""
echo "Press enter three (3) times"
echo ""
echo ""
ssh-keygen -t rsa
#exec /usr/bin/ssh-agent $SHELL
cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
echo ""
echo ""
echo "Answer 'yes' eight (8) times"
echo ""
echo ""
echo "exit" | ssh -T ben
echo "exit" | ssh -T edgard
echo "exit" | ssh -T herbert
echo "exit" | ssh -T john
echo "exit" | ssh -T luigi
echo "exit" | ssh -T pierre
echo "exit" | ssh -T sal
echo ""
echo ""
echo "Available nodes:"
echo "hostname;exit" | ssh -T ben
echo "hostname;exit" | ssh -T edgard
echo "hostname;exit" | ssh -T herbert
echo "hostname;exit" | ssh -T john
echo "hostname;exit" | ssh -T luigi
echo "hostname;exit" | ssh -T pierre
echo "hostname;exit" | ssh -T sal
echo ""
echo "Done."