# Sending Magic Keys through SSH

There might be situations when a server hangs, and you don't have KVM/IPMI access or physical access to it, but you urgently need to perform a hard reboot - what can you do in such a case?

If the server was nearby, you could send Alt+Prtn+(R,E,I,S,U,B) manually.

Solution:

```shell
echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger
```

Drawback: In this case, the filesystem is not properly unmounted.

This method proved helpful when an engineer had to travel for two hours to reach a secured area to reboot a server. The hardware issue was subsequently resolved.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://johnpion.gitbook.io/admin-sky-blog/linux/ssh_magic_keys.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
