Skip to content

Commit

Permalink
Add new host keys
Browse files Browse the repository at this point in the history
login.trustworthy.systems is now replicated, and uses
newer sshd.  Host keys have been regenerated;
reflect that here.

The increase in number of keys made it advisable to clean
up the way known_hosts was generated; did the same for
.ssh/config for consistency and readability.

Signed-off-by: Peter Chubb <[email protected]>
  • Loading branch information
wom-bat authored and lsf37 committed Jul 19, 2023
1 parent e1f9950 commit 607634d
Showing 1 changed file with 25 additions and 16 deletions.
41 changes: 25 additions & 16 deletions scripts/setup-hw-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,32 @@
# set up ssh for access to UNSW machine queue

mkdir -p ~/.ssh
echo "login.trustworthy.systems ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBD111xPT6mKt1s+wJvXIGwUXaebbM/B1GE7ztMUgKBqySbO/5AXXFUr/xflvSluH3lYG5tTpGwPYbJyHOmnJGLY=" >> ~/.ssh/known_hosts
echo "tftp.keg.cse.unsw.edu.au ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEj7X6doSoop91gTvBD7L4O7VGwCO5pLNsu5YAGS1L64MJqo+3wTYgFRdMWTM0hL3YN+1sSabJPICJzKk0EJxkg=" >> ~/.ssh/known_hosts
cat >> ~/.ssh/known_hosts <<\EOF
login.trustworthy.systems ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBD111xPT6mKt1s+wJvXIGwUXaebbM/B1GE7ztMUgKBqySbO/5AXXFUr/xflvSluH3lYG5tTpGwPYbJyHOmnJGLY=
login.trustworthy.systems ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCYZpsSbQVXO1FUK/OLYsHZm8nceROnrb/pOPoZOJjeOesE5JtL0g2c8AXWp8mEJ/8eWCUXD/iVDQs2FN9MGanh1ZgzmU6OyyE050W31owcM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ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCRA/W8LVxLFjzPvijygdSw+rPW/EQEG8WoUVcTm5dYXDIhCc0Zxibd19zPb1LQpE2/Ohe+I16iC5glpmFyDfrs=
login.trustworthy.systems ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPYp/3vDMDnHnjtqt5Oqievgz04g/LJ4yEKOlXCu9Yux
tftp.keg.cse.unsw.edu.au ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEj7X6doSoop91gTvBD7L4O7VGwCO5pLNsu5YAGS1L64MJqo+3wTYgFRdMWTM0hL3YN+1sSabJPICJzKk0EJxkg=
EOF

echo "Host *" >> ~/.ssh/config
echo "ServerAliveInterval 30" >> ~/.ssh/config
echo "ControlMaster auto" >> ~/.ssh/config
echo "ControlPath ~/.ssh/%r@%h:%p-${GITHUB_RUN_ID}-${GITHUB_JOB}-${INPUT_INDEX}" >> ~/.ssh/config
echo "ControlPersist 15" >> ~/.ssh/config
echo >> ~/.ssh/config
echo "Host ts" >> ~/.ssh/config
echo "Hostname login.trustworthy.systems" >> ~/.ssh/config
echo "User sel4_ci" >> ~/.ssh/config
echo >> ~/.ssh/config
echo "Host tftp.keg.cse.unsw.edu.au" >> ~/.ssh/config
echo "User sel4_ci" >> ~/.ssh/config
echo "ProxyJump ts" >> ~/.ssh/config
echo >> ~/.ssh/config
cat >> ~/.ssh/config <<EOF
Host *
ServerAliveInterval 30
ControlMaster auto
ControlPath ~/.ssh/%r@%h:%p-${GITHUB_RUN_ID}-${GITHUB_JOB}-${INPUT_INDEX}
ControlPersist 15
Host ts
Hostname login.trustworthy.systems
User sel4_ci
Host tftp.keg.cse.unsw.edu.au
User sel4_ci
ProxyJump ts
EOF

eval $(ssh-agent)
ssh-add -q - <<< "${HW_SSH}"

0 comments on commit 607634d

Please sign in to comment.