Skip to content

hanoii/ddev-sshd

Repository files navigation

tests project is maintained

ddev-sshd

What is ddev-sshd?

This adds an ssh server to the container. If ddev auth ssh has previously been run, it will export your local keys as authorized keys so you can ssh into the container.

The exposed host port will change on each restart, you can look for it on ddev describe.

Usage

This addon comes with a ddev sshd:config command that modify your local ssh configuration so that you can ssh DDEV_PROJECT making easier to work with ssh.

You can test this command and if you are happy with what it does you can add it to a post-start hook on your config.yaml:

hooks:
  post-start:
    - exec-host: ddev sshd:config

If you are courious on what the command will add, try

ddev sshd:config --dry-run

Install the dev version

You can always install the latest code with

ddev get https://github.com/hanoii/ddev-sshd/tarball/main

Contributed and maintained by @hanoii