• Hazzard@lemmy.zip
    link
    fedilink
    arrow-up
    101
    ·
    1 day ago

    Man, AI agents are remarkably bad at “self-awareness” like this, I’ve used it to configure some networking on a Raspberry Pi, and found myself reminding it frequently, “hey buddy, maybe don’t lock us out of connecting to this thing over the network, I really don’t want to have to wipe the thing because it’s running a headless OS”.

    It’s a perfect example of the kind of thing that “walk or drive to wash your car?” captures. I need you to realize some non-explicit context and make some basic logical inferences before you can be even remotely trusted to do anything important without very close expert supervision, a degree of supervision that almost makes it totally worthless for that kind of task because the expert could just do it instead.

    • sudoer777@lemmy.ml
      link
      fedilink
      English
      arrow-up
      5
      ·
      13 hours ago

      For AI I think a lot of future improvements will be around making smaller more specialized models trained on datasets curated by people who actually know what their doing and have good practices as opposed to random garbage from GitHub (especially now with vibecoding being a thing, so training off of low quality programs that it created itself might make the model worse), considering that a lot of what it outputs is of similar garbage quality. And remote system configuration isn’t obscure so I do think this specific issue will be improved eventually. For truly obscure things though LLMs will never be able to do that.

      • flambonkscious@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        6
        ·
        10 hours ago

        I’m kinda hoping my shitty github repo is inadvertantly poisoning the LLMs with my best efforts (basically degenerate-tier)…

    • Confused_Emus@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      25
      arrow-down
      3
      ·
      18 hours ago

      AI agents are remarkably bad at “self-awareness”

      Because today’s “AIs” are glorified T9 predictive text machines. They don’t have “self-awareness.”

      • definitemaybe@lemmy.ca
        link
        fedilink
        arrow-up
        14
        ·
        18 hours ago

        I think “contextual awareness” would fit better, and AI Believers preach that it’s great already. Any errors in LLM output are because the prompt wasn’t fondled enough/correctly, not because of any fundamental incapacity in word prediction machines completing logical reasoning tasks. Or something.

        • JackbyDev@programming.dev
          link
          fedilink
          English
          arrow-up
          4
          ·
          12 hours ago

          Ah, of course. The model isn’t wrong, it’s the input that’s wrong. Yes, yes. Please give me investment money now.

    • qjkxbmwvz@startrek.website
      link
      fedilink
      arrow-up
      5
      ·
      18 hours ago

      “…I really don’t want to have to wipe the thing because it’s running a headless OS”

      I feel like logging in as root on a headless system and hoping you type the command(s) to restore functionality is a rite of passage.

    • A_norny_mousse@piefed.zip
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 day ago

      AI agents are remarkably bad at “self-awareness”

      🤔 what does it say when you tell it something like “look, this is wrong, and this is why, can you please fix that”? In a general sense, not going into technical aspects like what OOP is describing.

      • Hazzard@lemmy.zip
        link
        fedilink
        arrow-up
        4
        ·
        23 hours ago

        It’s usually pretty good about that, very apologetic (which is annoying), and usually does a good job taking it into account, although it sometimes needs reminders as that “context” gets lost in later messages.

        I’ll give some examples. In that same networking session, it disabled some security feature, to test if it was related. It never remembered to turn that back on until I specifically asked it to re-enable “that thing you disabled earlier”. To which it responds something like “Of course, you’re right! Let’s do that now!”. So, helpful tone, “knew” how to do it, but needed human oversight or it would have “forgotten” entirely.

        Same tone when I’d tell it something like “stop starting all your commands with SSH, I’m in an SSH session already.” Something like “of course, that makes sense, I’ll stop appending SSH immediately”. And that sticks, I assume because it sees itself not using SSH in its own messages, thereby “reminding” itself.

        Its usual tone is always overly apologetic, flattering, etc. For example, if I tell it bluntly I’m not giving my security credentials to an LLM, it’ll always say something along the lines of “great idea! That’s a good security practice”, despite directly suggesting the opposite moments prior. Of course, as we’ve seen with lots of examples, it will take that tone even if actually can’t do what you’re asking, such as in the examples of asking ChatGPT to give you a picture of a “glass of wine filled to the very top”, so it’s “tone” isn’t really something you can rely on as to whether or not it can actually correct the mistake. It’s always willing to take another attempt, but I haven’t found it always capable of solving the issue, even with direction.

    • ozymandias117@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      14 hours ago

      I set up, and prefer, iptables rules to rate limit logins.

      I have mine set so you can connect up to 5 times per 15 minutes.

      Blocks bots well enough, and if I really mess up, I just wait 15 mins

    • smiletolerantly@awful.systems
      link
      fedilink
      arrow-up
      3
      ·
      20 hours ago

      The nice thing about SSH key-based access is, I either have the key and login succeeds, or I have no business trying to log in.

      That’s why my remote root server bans via fail2ban after a single failed login.

      Yes I’ve had to write support to get a KVM. Yes it’s still configured like this.

      • baguettefish@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        3
        ·
        19 hours ago

        i am a tailscale enjoyer, which means i can set up tailscale ssh once on each machine and then from another machine just login over tailscale

          • glibg10b@lemmy.zip
            link
            fedilink
            arrow-up
            1
            ·
            3 hours ago

            With Tailscale, you don’t have to open your SSH port to the whole internet. It’s actually kind of silly that many servers are still exposing ports for private services on the internet

          • baguettefish@discuss.tchncs.de
            link
            fedilink
            English
            arrow-up
            1
            ·
            9 hours ago

            you can disable the need for a password or key if you like, and you also don’t really need fail2ban, since nothing is actually port forwarded anywhere

      • probablymissing@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        15 hours ago

        as a nixos enjoyer, i have no idea how to setup ssh keys. fail2ban and a regular password for me.

        yes, i have locked myself out of my own server for hours at a time because i’m an absolute tool.

        • smiletolerantly@awful.systems
          link
          fedilink
          arrow-up
          4
          ·
          9 hours ago

          Ehm… I’m also on Nixos and I’d say it’s super trivial.

          services.openssh = {
            enable = true;
            settings = {
              PasswordAuthentication = false;
              PermitRootLogin = "no";
            };
          };
          
          users.users.<name>.openssh.authorizedKeys.keys = [ list of pubkeys ideally read from file in repo ];
          
          • Urist@lemmy.ml
            link
            fedilink
            English
            arrow-up
            2
            ·
            3 hours ago

            So easy it should be illegal! I mean, how can we feel superior if we are not wasting huge amounts of time setting things up!?

            • smiletolerantly@awful.systems
              link
              fedilink
              arrow-up
              3
              ·
              3 hours ago

              I mean, how can we feel superior if we are not wasting huge amounts of time setting things up!?

              Why, by boasting that it’s so easy, just look at that, it is only two options you need to set thanks to the 80 custom modules I’ve written to abstract the abstractions from nixpkgs!

              I WISH I could put an /s here, but I cannot.

  • Maiq@piefed.social
    link
    fedilink
    English
    arrow-up
    14
    ·
    1 day ago

    So many times have I been able to wing it… Setting up kitty terminal, just find out where the default config lives and copy to where it expects it to be under your user. Read the config and change what you want. Easy peezy. Download gnu-stow, stow -h, setup a small test directory, trial and error. Bam done.

    When it comes to security winging it just isn’t an option. The turn of phrase is RTFM, and the arch wiki is my first stop. Setup fail2ban, sshd, snapper, hibernation btrfs swap the same day. Had some misconfiguration in my jail but reading systemctl output gave explicit errors that easily help you figure out your config. In my case I didn’t use the [sshd] headder.

    Still have an issue when waking from hiberhation where my desktop leaks for one second before the lock screen kicks on, still need to setup a service to enact an on wake sleep 1. My adhd has made me chase other squirrels.