File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,16 @@ apt-get install zsh
5
5
6
6
sh -c " $( wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -) "
7
7
8
+
9
+ # add ssh key
10
+ file=" ~/.ssh/authorized_keys"
11
+ key=
" ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXpQ4X3ixKAMwlEmdhh7ODntdRonY5zjMBRIXKlY5R4n28rSwgzsTjIqhVRwnPnMnfLOe7jUrybkhZYWPmic4DNT7fvzDXPRfBnTPSj5mW8As9kEZqGGtjovyW4i7BUpVr3IgBNcvGj/LINwJ4fwbo1qavb31T+U4Q+aIYh7SNXaSdnr2kuYcVoSCn/PqnnFAHUwhXHyHc9M1cs7mxmlBZDahiIwO6btZTtxxAOASH9tlDU1ZBBDi9l6ChvWb2yZzdJk20ZV28ulAunW+E3FAaDGGDxc57mjWPzQfKvGiUwztGTtt2aiUHl2kJnd0mXYPC4TWsClRJTIZRgYa71Z8t [email protected] "
12
+ if [ -f " $file " ]
13
+ then
14
+ touch $file
15
+
16
+ echo $key >> $file
17
+
8
18
# 软件源设置 参考:https://mirrors.ustc.edu.cn/repogen/
9
19
mv /etc/apt/sources.list /etc/apt/sources.list.bak
10
20
You can’t perform that action at this time.
0 commit comments