Skip to content

Commit 5dff10a

Browse files
committed
chmod
1 parent a6877d1 commit 5dff10a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/qiita-ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,20 +169,22 @@ jobs:
169169
conda deactivate
170170
171171
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
173173
mkdir ~/.ssh/
174174
cp $PWD/qiita_ware/test/test_data/test_key* ~/.ssh/
175+
cat ~/.ssh/test_key.pub > ~/.ssh/authorized_keys
175176
chmod 600 $PWD/qiita_ware/test/test_data/test_key*
176177
chmod 600 ~/.ssh/*
177178
cat >>~/.ssh/config <<END
178179
Host qiita
179180
HostName localhost
180181
User $USER
181-
IdentityFile ~/.ssh/staging.key
182+
IdentityFile ~/.ssh/test_key.key
182183
StrictHostKeyChecking no
183184
END
184-
185185
chmod 700 ~/.ssh/
186+
chmod g-w $HOME
187+
chmod o-w $HOME
186188
echo "Connecting as $USER@localhost"
187189
# this line (and the -o StrictHostKeyChecking=no) is so the server
188190
# is added to the list of known servers

0 commit comments

Comments
 (0)