← Back to context

Comment by themafia

10 days ago

Why use ssh when wireguard is available?

Because I want to login to my user account without sending a password over the wire. If telnet can use keypairs to authenticate users then I guess I don't mind that as a solution, but I haven't heard of it? Also I do care about per-user auth because some of us still work in environments where servers have multiple users.

  • > over the wire

    You know what wireguard is?

    > If telnet can use keypairs

    Kerberos exists, so, yes, it can.

    • >> over the wire

      > You know what wireguard is?

      I suppose if you prefer, I can write "over the network". The point is that the password leaves my machine. As a practical example: With password auth, if an attacker gets root on a server then they can read your password and log in to other machines. With SSH keypairs, this isn't possible (unless you go out of your way to forward an SSH agent, and even then there are mitigations).

      >> If telnet can use keypairs

      > Kerberos exists, so, yes, it can.

      This sounds promising, and in fact at least one page I found about it claims that kerberos+telnet encrypts the session, at which point I don't immediately see what we need wireguard or ssh for. On the other hand, it looks like eg. GNU inetutils telnet doesn't support it? In fact, https://web.mit.edu/kerberos/krb5-1.5/krb5-1.5.4/doc/krb5-us... says

      > The Kerberos V5 telnet command works exactly like the standard UNIX telnet program, with the following Kerberos options added:

      which makes it sound like they've just made a special telnet variant with these features, at which point it rather feels like we've just re-invented ssh under a different name.

      2 replies →

So I don't need root permission or kernel networking stuff setup.

(I do run Wireguard, it just feels like sometimes a VPN is a sledgehammer to solve a port forwarding problem)