This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
main
|
main
|
||||||
yule
|
yule
|
||||||
|
.ssh/
|
||||||
@@ -4,4 +4,6 @@ services:
|
|||||||
container_name: yule
|
container_name: yule
|
||||||
ports:
|
ports:
|
||||||
- "${SSH_PORT:-2222}:2222"
|
- "${SSH_PORT:-2222}:2222"
|
||||||
|
volumes:
|
||||||
|
- ${ROOT_DIR}:/app/.ssh
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
1
main.go
1
main.go
@@ -34,6 +34,7 @@ func init() {
|
|||||||
func main() {
|
func main() {
|
||||||
s, err := wish.NewServer(
|
s, err := wish.NewServer(
|
||||||
wish.WithAddress(net.JoinHostPort(host, port)),
|
wish.WithAddress(net.JoinHostPort(host, port)),
|
||||||
|
wish.WithHostKeyPath(".ssh/id_ed25519"),
|
||||||
wish.WithMiddleware(
|
wish.WithMiddleware(
|
||||||
bubbletea.Middleware(teaHandler),
|
bubbletea.Middleware(teaHandler),
|
||||||
activeterm.Middleware(),
|
activeterm.Middleware(),
|
||||||
|
|||||||
Reference in New Issue
Block a user