We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ed2bf0 commit c9e6d8bCopy full SHA for c9e6d8b
1 file changed
.ci/setup_ssh_config.sh
@@ -2,17 +2,10 @@
2
3
set -exu
4
5
-sudo apt-get upgrade
6
-sudo apt-get update
7
-sudo apt-get install openssh-server
8
-sudo service ssh start
9
-
10
mkdir -p ~/.ssh
11
cd ~/.ssh
12
ssh-keygen -q -t rsa -N "" -f jsch
13
cat jsch.pub >> authorized_keys
14
-chmod 640 authorized_keys
15
-sudo service ssh restart
16
17
cat <<EOT >> config
18
Host junit-host
@@ -22,5 +15,8 @@ Host junit-host
22
PreferredAuthentications publickey
23
EOT
24
+chmod go-w $HOME $HOME/.ssh
19
+chmod 600 $HOME/.ssh/authorized_keys
20
+
25
21
ssh -q junit-host exit
26
0 commit comments