Skip to content

Commit c9e6d8b

Browse files
committed
sshd already there
1 parent 8ed2bf0 commit c9e6d8b

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.ci/setup_ssh_config.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,10 @@
22

33
set -exu
44

5-
sudo apt-get upgrade
6-
sudo apt-get update
7-
sudo apt-get install openssh-server
8-
sudo service ssh start
9-
105
mkdir -p ~/.ssh
116
cd ~/.ssh
127
ssh-keygen -q -t rsa -N "" -f jsch
138
cat jsch.pub >> authorized_keys
14-
chmod 640 authorized_keys
15-
sudo service ssh restart
169

1710
cat <<EOT >> config
1811
Host junit-host
@@ -22,5 +15,8 @@ Host junit-host
2215
PreferredAuthentications publickey
2316
EOT
2417

18+
chmod go-w $HOME $HOME/.ssh
19+
chmod 600 $HOME/.ssh/authorized_keys
20+
2521
ssh -q junit-host exit
2622

0 commit comments

Comments
 (0)