2
My Step By Step:
- On myserver.com i paste line "sudo -s" to file "~/.bashrc" in home directory for "mylogin"
- SSH Login to mylogin@myserver.com
After login:
root@myserver.com:~$
But, press cntrl+D for exit
root@myserver.com:~$ exit
root@myserver.com:~$ exit
...
root@myserver.com:~$
5.Do not quit.
Why?
Please, tell me the correct method.
Also note that if sudo -s breaks for any reason, you are locked out of the machine—at least in interactive mode. If you remember what is going on you can do a non-interactive ssh in to fix things. – Seth Robertson – 2011-05-22T03:25:58.617