Skip to content

Commit

Permalink
Fix #476: remove overlapping ssh binds (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
e-carlin authored Apr 9, 2024
1 parent c688dd1 commit 0c93996
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions rsconf/package_data/vm_devbox/start.sh.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ install --mode=400 --owner=root --group=root /dev/stdin /etc/ssh/sshd_config<<EO
# Keep vagrant ssh working
Include /etc/ssh/sshd_config.d/*.conf
ListenAddress 0.0.0.0:22
HostKey {{ this.ssh_guest_host_key_f }}
ListenAddress 0.0.0.0:{{ this.ssh_port }}
Expand All @@ -80,8 +79,9 @@ PermitRootLogin no
Protocol 2
X11Forwarding yes
# SSH access from localhost (ex for sirepo.job_driver.sbatch)
ListenAddress {{ this.local_ip }}:22
# For `vagrant ssh` and SSH access from local_ip
ListenAddress 0.0.0.0:22
# Allow passwords just for vagrant from local_ip (ex for sirepo.job_driver.sbatch)
Match User {{ this.run_u }} Address {{ this.local_ip }}
PasswordAuthentication yes
EOF_SSH_CONFIG
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ install --mode=400 --owner=root --group=root /dev/stdin /etc/ssh/sshd_config<<EO
# Keep vagrant ssh working
Include /etc/ssh/sshd_config.d/*.conf
ListenAddress 0.0.0.0:22
HostKey /etc/ssh/host_key
ListenAddress 0.0.0.0:11110
Expand All @@ -80,8 +79,9 @@ PermitRootLogin no
Protocol 2
X11Forwarding yes
# SSH access from localhost (ex for sirepo.job_driver.sbatch)
ListenAddress 127.0.0.1:22
# For `vagrant ssh` and SSH access from local_ip
ListenAddress 0.0.0.0:22
# Allow passwords just for vagrant from local_ip (ex for sirepo.job_driver.sbatch)
Match User vagrant Address 127.0.0.1
PasswordAuthentication yes
EOF_SSH_CONFIG
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' '010c45bdda17d571d19d946057f11b1a'
rsconf_install_file '/srv/vm_devbox_user-1/start' '25136a48b7b1ad798029c998c93a7798'
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' '95beabb09a3e8a9977002d11ae4e47cd'
Expand Down

0 comments on commit 0c93996

Please sign in to comment.