Sample Header Ad - 728x90

Reset via ssh on irresponsive machine

2 votes
2 answers
672 views
I have a machine I cannot physically access at the moment. Now this machine is irresponsive, in the sense that when I try to log in via ssh the output is
/bin/bash: Input/output error
and then the connection closes. I want to remotely reset the machine via echo 'reisub' > /proc/sysrq-trigger (which I believe should be possible since the kernel and ssh are still running). I have tried the following
ssh -T  "echo 'reisub' > /proc/sysrq-trigger"
but ssh is still trying to call /bin/bash and gives the same error. Is there any way to run the command directly (via ssh) instead of first calling bash?
Asked by mvphys (101 rep)
May 23, 2020, 05:11 PM
Last activity: May 23, 2020, 07:22 PM