this post was submitted on 05 Mar 2022
0 points (50.0% liked)

Linux

47362 readers
1265 users here now

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

Related Communities

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

founded 5 years ago
MODERATORS
 

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

top 14 comments
sorted by: hot top controversial new old
[–] arthur@lemmy.ml 4 points 2 years ago

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

[–] KSPAtlas@sopuli.xyz 2 points 2 years ago* (last edited 2 years ago) (1 children)
[–] Aiwendil@lemmy.ml 2 points 2 years ago

Yes, in a way that's pretty much how having multiple local terminals work as well. For ssh there is no difference there, you can have multiple logins with the same credentials even from different remote locations.

[–] jakob@lemmy.schuerz.at 2 points 2 years ago

yes. my daily work works this way.

[–] southerntofu@lemmy.ml 2 points 2 years ago (3 children)

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

[–] coleman@lemmy.ml 1 points 2 years ago (1 children)

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 1 points 2 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

[–] Helix@feddit.de 0 points 2 years ago (1 children)

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

[–] jackalope@lemmy.ml 1 points 2 years ago (1 children)

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 1 points 2 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?