diff --git a/.gitignore b/.gitignore index c633a4d..0441609 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ main -yule \ No newline at end of file +yule +.ssh/ \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index ff8fe8c..19ea805 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,4 +4,6 @@ services: container_name: yule ports: - "${SSH_PORT:-2222}:2222" + volumes: + - ${ROOT_DIR}:/app/.ssh restart: unless-stopped diff --git a/main.go b/main.go index 3a0e85e..019c785 100644 --- a/main.go +++ b/main.go @@ -34,6 +34,7 @@ func init() { func main() { s, err := wish.NewServer( wish.WithAddress(net.JoinHostPort(host, port)), + wish.WithHostKeyPath(".ssh/id_ed25519"), wish.WithMiddleware( bubbletea.Middleware(teaHandler), activeterm.Middleware(),