Skip to content

Commit

Permalink
Fix #474: allow vagrant localhost ssh in vm_devbox
Browse files Browse the repository at this point in the history
Allow ssh connections from vagrant over localhost in vm_devbox.
This allows services like sirepo.job_driver.sbatch to connect
over localhost back in to the host via ssh to start a job_agent.
  • Loading branch information
e-carlin committed Apr 1, 2024
1 parent 5c9dd66 commit b4fd0ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rsconf/package_data/vm_devbox/start.sh.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ PasswordAuthentication no
PermitRootLogin no
Protocol 2
X11Forwarding yes
# SSH acces from localhost (ex for sirepo.job_driver.sbatch)
ListenAddress 127.0.0.1:22
Match User vagrant Address 127.0.0.1
PasswordAuthentication yes
EOF_INSTALL
echo '{{ this.ssh_identity_pub_key }}' >> '/home/{{ this.run_u }}/.ssh/authorized_keys'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ PasswordAuthentication no
PermitRootLogin no
Protocol 2
X11Forwarding yes
# SSH acces from localhost (ex for sirepo.job_driver.sbatch)
ListenAddress 127.0.0.1:22
Match User vagrant Address 127.0.0.1
PasswordAuthentication yes
EOF_INSTALL
echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKe3wWXD3GUVd/5viGVhf6L/ttJJfmksXauPSpC8zWru v9.radia.run
Expand Down

0 comments on commit b4fd0ab

Please sign in to comment.