I'm having a problem on my remote server (which is in another city) and I can't access it with SSH. I can see that port 80 and 443 is open, but port 22 isn't. I could only assume that sshd didn't start correctly.
I'm now in the system through a rescue disk. Should adding those lines to rc.local
update-rc.d ssh defaults
/etc/init.d/sshd start
get those commands to run at startup? Or is there something else to be done other than adding them?
Thank you.
rcconfand marksshfor automatic startup. There is no need forrc.local, but just in case this script must end withexit 0line to work correctly. – barti_ddu Jan 23 '14 at 10:03chrootto it. – barti_ddu Jan 23 '14 at 11:22