logoalt Hacker News

inigyouyesterday at 8:39 PM1 replyview on HN

That's a hack. It's a login shell that, once you have already logged in and run the shell, prints a message saying you can't log in or run a shell, and then exits.

It does not stop you from, say, logging in to SSH and then starting a port forward. Or running a command in a way that bypasses the login shell. ssh will always pass it to your login shell but other ways can be vulnerable.


Replies

Benderyesterday at 10:51 PM

Do you have a script to show us how it works? Here, use Claude's login [1]. There's no password. I am not very technical so let me know if I should set a password on that account. I trust everyone here.

    [1] - sftp [email protected]
show 1 reply