Skip to content

Commit

Permalink
Fix #440: configuration to make ssh more secure (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
e-carlin authored Feb 6, 2024
1 parent da6e134 commit 8f4e83c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions rsconf/package_data/vm_devbox/start.sh.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ HostKey {{ this.ssh_guest_host_key_f }}
ListenAddress 0.0.0.0:{{ this.ssh_port }}
AuthorizedKeysFile .ssh/authorized_keys
AllowUsers {{ this.run_u }}
PasswordAuthentication no
PermitRootLogin no
Protocol 2
X11Forwarding yes
EOF_INSTALL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ HostKey /etc/ssh/host_key
ListenAddress 0.0.0.0:11110
AuthorizedKeysFile .ssh/authorized_keys
AllowUsers vagrant
PasswordAuthentication no
PermitRootLogin no
Protocol 2
X11Forwarding yes
EOF_INSTALL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ rsconf_service_prepare 'vm_devbox_user-1' '/etc/systemd/system/vm_devbox_user-1.
rsconf_install_access '700' 'vagrant' 'vagrant'
rsconf_install_directory '/srv/vm_devbox_user-1'
rsconf_install_access '500' 'vagrant' 'vagrant'
rsconf_install_file '/srv/vm_devbox_user-1/start' '03f7809d5a7ef88b6a4ce734814a8ec8'
rsconf_install_file '/srv/vm_devbox_user-1/start' '081baa61746f4dd28339816bb90453ed'
rsconf_install_file '/srv/vm_devbox_user-1/stop' '94f5e7855deadc753f54580dfad70217'
rsconf_install_access '444' 'root' 'root'
rsconf_install_file '/etc/systemd/system/vm_devbox_user-1.service' '9bea6d3fc6b169474e19863d1e2da5a3'
Expand Down

0 comments on commit 8f4e83c

Please sign in to comment.