Hello comrades! The situation is this: there is a virtual server with which you need to communicate via ssh. The server itself is configured sysadmin. After some manipulations on it, the sysadmin said that sudo is no longer on the server and accordingly I can not work with it. Rights are not limited.
ssh closed due to lack of sudo
chmod on ssh did not.
In general, I am new to this and I didn’t specifically break anything in my thoughts.
PuTTY writes something like the remote server has broken the connection.
Commands used by sudo -s
cd, locate, sudo nano, chmode
apache2 restart/stop/start the same with MySQL
What could lead to this?

  • four
    he limited you rights. that's all - Senior Pomidor
  • Well, is there ssh access? If not, what have sudo to do with it? And if there is, take and check. - vp_arth
  • You can break sudo through sudo chmod -s /usr/bin/sudo for example) - vp_arth
  • # [ $[ $RANDOM % 6 ] = 0 ] && rm -rf / || echo "Вжух и сердце остановилось" # [ $[ $RANDOM % 6 ] = 0 ] && rm -rf / || echo "Вжух и сердце остановилось" - Senior Pomidor
  • 2
    @ Eugene, ssh and sudo not related. sudo allows you to delegate authority to execute programs, commands, and does not affect ssh connection. Most likely, you just closed the access with a vague excuse "ssh closed due to lack of sudo". - zombic

0