meta data for this page
  •  

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
home_automation:home_assistant:integrations:ssh [2023/06/07 07:13] niziakhome_automation:home_assistant:integrations:ssh [2025/03/13 09:19] (current) – [Debug SSH to host] niziak
Line 4: Line 4:
  
 ===== Terminal & SSH ===== ===== Terminal & SSH =====
 +  * Home Page: [[https://github.com/home-assistant/addons/tree/master/ssh|Home Assistant Add-on: SSH server]]
  
  
Line 11: Line 12:
 ====== Debug SSH to host ====== ====== Debug SSH to host ======
  
-Enable real SSH to host operating system: +Enable real SSH to host operating system (not container)
-  * use real host console+  * Install and configure [[ssh#Terminal & SSH]] Add-on to use public key 
 +  * **use real host console** - i.e. using Proxmox console
   * login as root by issuing ''login'' command   * login as root by issuing ''login'' command
   * ''cd /root/.ssh''   * ''cd /root/.ssh''
-  *  +  * make sure that [[ssh#Terminal & SSH]] Add-on public key exits: 
- +    * ''docker exec -it addon_core_ssh ls -la /data/.ssh'' 
 +  * copy ''authorized_keys'' from addon to host: 
 +    * ''docker cp addon_core_ssh:/data/.ssh/authorized_keys .'' 
 +    * ''chmod 600 authorized_keys'' 
 +  * Start SSH server: 
 +    * <code bash>systemctl enable --now dropbear</code> 
 +  * Login to host: 
 +    * <code bash>ssh homeassistant -l root -p 22222</code>