We have a server which we connect through and do remote tasks. However, around 4-5 people login with the same username and password. Can this situation cause anything weird?
1 Answer
Define weird ..
You will not be able to use history, or other last-used settings, in a meaningful manner as anyone could have used/set these last. You will also be unable to assign responsibility, if anything goes wrong.
I don't recommend this practice, unless you don't care what happens to this server (and its content).
The SSH sessions themselves will be fine.
I have maintained more than one session, when monitoring command-line transfers or configuration, with no issues.
-
Well thanks for the answer so the best option would be to create new users I presume. By the way how can I check which users (ips for example) are connected and how many ssh connections are present at a given time?– VesnogMay 4, 2014 at 0:55
-
Yes, and you should use accounts with sudo rights. Then sudo logs will tell you what you need.– david6May 4, 2014 at 2:28
-
1@vesnog
w
orwho
– user234837May 4, 2014 at 7:09 -
@david6 Is sudo logs an additional command or you are talking about something else?– VesnogMay 4, 2014 at 15:38
-
No, its log data that is collected in: /var/log/auth.log. Try this command:
tail -f /var/log/auth.log
ORcat /var/log/auth.log | grep sudo | tail -20
– david6May 5, 2014 at 7:59