Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| blocks:ssh [2021-07-22 16:41] – created admin | blocks:ssh [2025-11-14 11:53] (current) – mattias | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Remote Management using SSH ====== | + | ===== Remote Management using SSH ===== |
| If you prefer (or have to use) a command line for managing Blocks, here's a video showing you how to do this. SSH is a terminal command available on all major operating systems, allowing you to log in to a remote computer, execute commands, copy files back and forth, etc, all using a secure and encrypted connection. | If you prefer (or have to use) a command line for managing Blocks, here's a video showing you how to do this. SSH is a terminal command available on all major operating systems, allowing you to log in to a remote computer, execute commands, copy files back and forth, etc, all using a secure and encrypted connection. | ||
| - | + | {{vimeo> | |
| - | {{vimeo> | + | |
| ==== List of Commands ==== | ==== List of Commands ==== | ||
| Line 73: | Line 72: | ||
| # View the last couple of lines in the current log file: | # View the last couple of lines in the current log file: | ||
| - | tail | + | tail latest.log |
| # Follow what's added to the log file in real time | # Follow what's added to the log file in real time | ||
| - | tail -f | + | tail -f latest.log |
| # To stop following, press Ctrl-C | # To stop following, press Ctrl-C | ||
| Line 87: | Line 86: | ||
| # Or perhaps just config.yml if inside the Blocks root | # Or perhaps just config.yml if inside the Blocks root | ||
| - | # Show how to use nano | + | # View general performance and running processes |
| htop | htop | ||
| - | # Show what htop tells you | ||
| # display free disk space | # display free disk space | ||
| Line 136: | Line 133: | ||
| # Rebooting the remote computer | # Rebooting the remote computer | ||
| sudo reboot now | sudo reboot now | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Warnings ==== | ||
| + | If you log on to a computer that you e.g reimage you may see a warning like this. It may look a bit scary but the underlying reason is in that case that you already used ssh wo this ip or domain name and is is associated with differens ssh id keys. The intention of such warning is to make the user to consider if it is legit or not. | ||
| + | {{: | ||
| + | |||
| + | Rather that editing the file the following commands can be used in the terminal to clear the associated keys and get ready for new ones: | ||
| + | < | ||
| + | ssh-keygen -R <ip or domain> | ||
| + | </ | ||
| + | Example: | ||
| + | < | ||
| + | ssh-keygen -R 10.0.1.195 | ||
| </ | </ | ||