Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
blocks:ssh [2023-03-16 13:34] – [Remote Management using SSH] mattiasblocks:ssh [2026-01-12 08:11] (current) – [Warnings] admin
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>578111268?full}}
  
-<html> 
-<div style="padding:56.25% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/578111268?h=f5ce28d50b&amp;badge=0&amp;autopause=0&amp;player_id=0&amp;app_id=58479" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" allowfullscreen style="position:absolute;top:0;left:0;width:100%;height:100%;" title="Remote Management using SSH"></iframe></div><script src="https://player.vimeo.com/api/player.js"></script> 
-</html> 
 ==== List of Commands ==== ==== List of Commands ====
  
Line 135: Line 133:
 # Rebooting the remote computer # Rebooting the remote computer
 sudo reboot now sudo reboot now
 +</code>
 +
 +
 +==== Warnings ====
 +When using //ssh// to log on to a new computer or one that has just been restored from a disk image, you may see a warning like what's shown below. The reason for such a warning is that you've previously used //ssh// to access this IP address or domain name, and it's now associated with a different //ssh id//. The intention of such warning is to make the user to consider if it is legit or not. 
 +
 +{{:blocks:ssh:screenshot_2025-11-14_115333.png?600|}}
 +
 +Rather that editing the file that keeps track of those IDs, the following commands can be used in the terminal to clear the associated keys and get ready for new ones:
 +
 +<code>
 +ssh-keygen -R <ip or domain> 
 +</code>
 +
 +Example:
 +
 +<code>
 +ssh-keygen -R 10.0.1.195
 </code> </code>