Re:Devzat – Chat over SSH, with some nice quality-of-life fe...
by semi-extrinsic on Thursday July 18, 2024 @06:27PM
(#41000334)
Or in the authorized_keys file, prepend the public key with a specified command. This is then the only command that the user can execute when logging in with that particular key. To wit:
[ Parent
| on HN ]
Re:Devzat – Chat over SSH, with some nice quality-of-life fe...
by titaniumtown on Thursday July 18, 2024 @07:47PM
(#41000815)
i had no idea about that, thank you!
Re:Devzat – Chat over SSH, with some nice quality-of-life fe...
by kijin on Thursday July 18, 2024 @08:22PM
(#41000983)
I suppose this will also lock the user out of sftp and scp? Because otherwise they might be able to edit the authorized_keys file and run any command.
Re:Devzat – Chat over SSH, with some nice quality-of-life fe...
by gerdesj on Thursday July 18, 2024 @08:58PM
(#41001192)
"I suppose this will also lock the user out of sftp and scp?"
No it wont! The specified command might provide sftp, scp, telnet or stream a film.