I have suddenly since a soft reboot on a Rackspace VPS today experienced a weird problem where the SSH Service stops and gives me a file missing error.
Only re-creating an "empty" text file in the location /tmp/sh gets it working again.
I have tried using the start service button but this doesn't do anything but say
"sh: /tmp/sh: No such file or directory"
I tried re-installing the SSH package and SSH2 and ensuring Java was working with my system but everytime I reboot this file disappears and SSH stops and I have to re-create this empty text file to get SSH (SFTP and console access) working again.
You can see more details in this support ticket I posted > https://www.virtualmin.com/comment/reply/34428/138216
However -I know I am on Lenny and need an upgrade however I just need the time to move all the files across -This has never happened in 2+ years of hosting -This only started today after another "busy" client on the VPS caused disk swapping issues. -A reboot kills SSH every time -Only creating the empty file lets me restart the service -I have installed SSH2 as well
I tried all the commands e.g
/etc/init.d/ssh restart sh: /tmp/sh: No such file or directory /etc/init.d/sshd restart bash: /etc/init.d/sshd: No such file or directory service ssh restart bash: service: command not found service sshd restart bash: service: command not found
Only this file seems to be the key to solving the issue.
What I need to know is why?
any help much appreciated