We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4e08af commit 795ebd2Copy full SHA for 795ebd2
1 file changed
.ci/setup_ssh_config.sh
@@ -2,13 +2,25 @@
2
3
set -exu
4
5
-whoami
+sudo apt-get upgrade
6
+sudo apt-get update
7
+sudo apt-get install openssh-server
8
+sudo service ssh start
9
-which ssh
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
-ls -lsa ~/.ssh
17
+cat <<EOT >> config
18
+Host junit-host
19
+ HostName localhost
20
+ StrictHostKeyChecking no
21
+ IdentityFile ~/.ssh/jsch
22
+ PreferredAuthentications publickey
23
+EOT
24
-ssh localhost
-
-exit 1
25
+ssh -q junit-host exit
26
0 commit comments