Originally Posted by isolvesystems
In Ubuntu, may I know how do I automatically enable SSH Server when I use "init 1" to get into Single user mode?
Single-user mode is normally used for system maintenance tasks such as repairing filesystems and the like so I can't imagine why you'd want someone to be able to connect while you're in the middle of that, but if you really
wanted to, you could switch to single-user and manually run the startup scripts until you had a configuration that had basic networking up and running. I'd guess that you'd want to go into /etc/rc.d/rc3.d (on SUSE, anyway) and run all the "K" scripts and then run the "S" scripts in order until you got networking started. (On SUSE this would be S05network.) You're definitely not going to be in single-user mode any more and you won't be quite up to level 3. At that point you could try starting the sshd daemon.
Another thing you might need to do is to make sure that /dev/pts is mounted. It's been a while but seem to recall that that needed to be mounted in order for remote logins to work. (I'd test that but I'm in the middle of testing something and don't want to risk messing it up.