I’m making a home server and I wonder if two people can connect through ssh to the same user at the same time.

  • southerntofu@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    And you can even “share the screen and keyboard” by using tmux or screen command to setup a virtual terminal shared over your respective virtual TTYs (over SSH).

  • art@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    Yup. I think it just shows up as another TTY of the same user.

    • jackalope@lemmy.ml
      link
      fedilink
      arrow-up
      5
      ·
      3 years ago

      Because maybe they aren’t two people.

      Also telling people asking questions on the internet “we aren’t Google” is silly. How do you think answers to questions get on the internet? People ask them, other people answer them and then in the future when people Google it they can find other people asking that question and getting answers.

      If you don’t have anything useful to add to the post don’t comment lole that.

      • Helix 🧬@feddit.deB
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        3 years ago

        Because maybe they aren’t two people.

        You can try with two terminal windows.

        Also telling people asking questions on the internet “we aren’t Google” is silly.

        This is wrong, since questions like these have been answered dozens of times and are easily accessible. Also you can easily try it out.

        For more complex questions or stuff that’s not to be easily tried out or answered in every second SSH guide out there I’m totally with you.

        If you don’t have anything useful to add to the post don’t comment like that.

        I already answered the question. Did you?

  • coleman@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    3 years ago

    A cool command you can run is the following

    who
    

    It shows the open sessions for each user on the server.

    Since who is part of GNU coreutils, you can get more info about it using the weird GNU info command.

    info who
    
    • a_Ha@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      info who > who-infos-in-text.txt
      … then open this file in your favorite text editor : so you can …
      .1) use “find” &
      .2) add your own comments //eddits