4 ms·
I love how you can SSH to a server and be presented with a login / registration screen. I would love to adapt this for use with an open source project I'm makin
by NickBusey 9y ago
I love how you can SSH to a server and be presented with a login / registration screen. I would love to adapt this for use with an open source project I'm making, but don't think I have the fortitude for assembly. Anyone have any tips on how something like this is achievable using a more modern/approachable tooling stack?
- steventhedev 9y agoIf golang is your thing, take a look at this[0] or that[1]. You can probably find similar ones with some quick research. The neat part is that you can easily pull down someone's github keys and automatically authenticate them against that identity. You can follow up with an email/password registration as a backup identity provider, if you really want to push the envelope (and save the public key for future automatic authentication). Of course, if you're just looking to hack something together quickly, you can simply force a specific command to be run. [0]: https://github.com/shazow/ssh-chat https://github.com/shazow/ssh-chat [1]: https://github.com/gliderlabs/ssh https://github.com/gliderlabs/ssh
- NickBusey 9y agoPerfect, golang definitely is my thing, I've been using that to build my cli tool. Thanks!
- rainingmonkey 9y agoEinChan is an SSH BBS which works like this; you log in as the einchan user and are dropped straight into the BBS software. try ssh einchan@einchan.god.jp, password: ein
- c22 9y agoI built one in Python awhile ago on a lark: https://github.com/kryptographik/ShuSSH https://github.com/kryptographik/ShuSSH
- kpcyrd 9y agoIf you want to do this the traditional way, you would setup a user, then properly secure it (you might end up becoming a proxy) and then set a ForceCommand. After that, verify your config works, then set the password for that user to an empty password. After that, allow empty passwords on your ssh config so you can ssh to this user without any authentication. This is how eg anoncvs works. After that point, it's just a matter of writing the application you want to run, with stdio being connected to your user.