News for hackers. Stuff that matters.
Re:Show HN: A WireGuard Powered Remote Shell by yencabulator on Sunday May 12, 2024 @05:24PM (#40337713)
SSH can authenticate a user, wireguard (as typically deployed) only authenticates a computer.

SSH can sometimes authenticate intent, like Yubikey touch.

Using wireguard for authentication is a mistake. The category of mistake is usually referred to as ambient authority, often exploited via a confused deputy.

Re:Show HN: A WireGuard Powered Remote Shell by jmole on Sunday May 12, 2024 @10:53PM (#40339386)
I think you are misunderstanding the use of wireguard here - this is a userspace wireguard connection, so the process has the same permissions as the user executing it.

In one sense, this is no different than adding a public key to ~/ssh/authorized_keys.

If you control the key, you control the authentication.

Re:Show HN: A WireGuard Powered Remote Shell by yencabulator on Sunday May 12, 2024 @11:29PM (#40339551)
In the case of the project linked, yes. I'm responding to the comment that said

> I heard that ssh is kinda of an unnecessary step

Re:Show HN: A WireGuard Powered Remote Shell by augusto-moura on Monday May 13, 2024 @12:20AM (#40339757)
rsh would fill the same gap for authentication, (or even raw telnet), or anything that integrates with unix users.

What makes SSH different is the encrypting part. The keys were only introduced to be used by the encryption algorithms. Users and multiple identities were a core detail of nixes much before SSH

Re:Show HN: A WireGuard Powered Remote Shell by yencabulator on Monday May 13, 2024 @01:11AM (#40339994)
rsh relies on the client host to not lie, that's quite a different level of guarantee than touching a Yubikey.
Re:Show HN: A WireGuard Powered Remote Shell by augusto-moura on Tuesday May 14, 2024 @11:33PM (#40362806)
Ok, I get what you mean rlogin and rsh are not safe because of inumerous legacy problems. But I think you get what I meant as well, authorization problems can be solved without SSH.

I said that even rsh would do because will can ignore all the weird outdated stuff and just login with an user and password, same as a local login. In that case telnet would also work.

However, I truly believe that cryptographic keys are way superior to passwords. And going back to them would be a huge step back