Hacker News new | ask | show | jobs
by LifeOverIP 611 days ago
I'm curious what are some prototypical use cases for you to embed an ssh sever into an application?
2 comments

I work for a C++ company but the game we work on has a debug telnet server. It’s super useful to inspect state or even run automation scripts. Also has a bunch of useful debug commands like the ability to live reload shaders or change how various subsystems work.
[redacted for accuracy]
Going through the code, I couldn't find a server but only usage of ssh client. May be I missed it. But I think GP was looking for usecases where its helpful to run an embedded ssh server using a go binary.

Ansible facts can probably be a cross platform way to collect most of the information you need. For the usecases where scp'ng the binary is needed, I think ansible supports jumphost config too. But I agree that for one off tasks, running a single binary is convenient compared to setting up ansible.

Oop - you're right, I missed that they wanted server examples specifically. Thanks for the save.