Skip to content

Commit

Permalink
Merge pull request #21 from jpculp/switch-to-current-dir
Browse files Browse the repository at this point in the history
Switch paths from `host-containers/admin` to `host-containers/current`
  • Loading branch information
jpculp authored Mar 31, 2021
2 parents f7fffa9 + cd29412 commit 34749d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions sshd_config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
HostKey /.bottlerocket/host-containers/admin/etc/ssh/ssh_host_rsa_key
HostKey /.bottlerocket/host-containers/admin/etc/ssh/ssh_host_ecdsa_key
HostKey /.bottlerocket/host-containers/admin/etc/ssh/ssh_host_ed25519_key
HostKey /.bottlerocket/host-containers/current/etc/ssh/ssh_host_rsa_key
HostKey /.bottlerocket/host-containers/current/etc/ssh/ssh_host_ecdsa_key
HostKey /.bottlerocket/host-containers/current/etc/ssh/ssh_host_ed25519_key

PasswordAuthentication no

Expand Down
5 changes: 3 additions & 2 deletions start_admin_sshd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ log() {
}

declare -r local_user="ec2-user"
declare -r ssh_host_key_dir="/.bottlerocket/host-containers/admin/etc/ssh"
declare -r user_data="/.bottlerocket/host-containers/admin/user-data"
declare -r persistent_storage_base_dir="/.bottlerocket/host-containers/current"
declare -r ssh_host_key_dir="${persistent_storage_base_dir}/etc/ssh"
declare -r user_data="${persistent_storage_base_dir}/user-data"
declare -r user_ssh_dir="/home/${local_user}/.ssh"
available_auth_methods=0

Expand Down

0 comments on commit 34749d9

Please sign in to comment.