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
17 hilabete

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).

Jakob
link
fedilink
17 hilabete

yes. my daily work works this way.

art
link
fedilink
17 hilabete

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

KSP Atlas
link
fedilink
1
edit-2
7 hilabete

I think so, I’ll check

KSP Atlas
link
fedilink
17 hilabete

Yes

coleman
link
fedilink
07 hilabete

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
17 hilabete

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

@Helix@feddit.de
link
fedilink
07 hilabete

Yes, it works. But why don’t you try it out? We’re not google.

@jackalope@lemmy.ml
link
fedilink
57 hilabete

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.de
link
fedilink
17 hilabete

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?

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

  • 0 users online
  • 5 users / day
  • 17 users / week
  • 47 users / month
  • 282 users / 6 months
  • 17 subscribers
  • 1.61K Posts
  • 5.09K Comments
  • Modlog