File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -169,20 +169,22 @@ jobs:
169
169
conda deactivate
170
170
171
171
echo "8. Setting up SSH"
172
- ssh-keygen -t rsa -b 4096 -N '' -f $PWD/qiita_ware/test/test_data/test_key
172
+ ssh-keygen -t rsa -q -N '' -f $PWD/qiita_ware/test/test_data/test_key
173
173
mkdir ~/.ssh/
174
174
cp $PWD/qiita_ware/test/test_data/test_key* ~/.ssh/
175
+ cat ~/.ssh/test_key.pub > ~/.ssh/authorized_keys
175
176
chmod 600 $PWD/qiita_ware/test/test_data/test_key*
176
177
chmod 600 ~/.ssh/*
177
178
cat >>~/.ssh/config <<END
178
179
Host qiita
179
180
HostName localhost
180
181
User $USER
181
- IdentityFile ~/.ssh/staging .key
182
+ IdentityFile ~/.ssh/test_key .key
182
183
StrictHostKeyChecking no
183
184
END
184
-
185
185
chmod 700 ~/.ssh/
186
+ chmod g-w $HOME
187
+ chmod o-w $HOME
186
188
echo "Connecting as $USER@localhost"
187
189
# this line (and the -o StrictHostKeyChecking=no) is so the server
188
190
# is added to the list of known servers
You can’t perform that action at this time.
0 commit comments