Hi everybody,
I am intended to controm my Porteus Kiosk operated touchscreen via Home Assistant. Unfortunately there is no Home Assistant integration yet.
Therefore I plan to use SSH in order to perform Reboot, Shutdown, Screen on/off, brightness control, etc.
I activated SSH and with the password I set everything woks fine via putty. Unfortunately Home Assistant does not allow SSH password authentification. Instead I am obliged to use an SSH key and need to place my public key within Porteus Kiosk.
Can anybody let me know if and how this works? Where do I need to place the public Key?
Thanks and kindest regards,
Chillkroete
Access via SSH key
Here you can post about the issues related to modifications performed manually (not through the kiosk wizard). Example: swapped kernel, added 3rd party modules or files.
Please describe in detail what has been changed and hopefully other kiosk user will be able to help.
Porteus team wont resolve bugs posted in this category as we support only modifications made by the kiosk wizard.
Please describe in detail what has been changed and hopefully other kiosk user will be able to help.
Porteus team wont resolve bugs posted in this category as we support only modifications made by the kiosk wizard.
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
-
- White ninja
- Posts: 12
- Joined: 09 Jul 2023, 06:30
- Distribution: Porteus Kiosk 5.5
Chillkroete
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Access via SSH key
Post#2 by fanthom » 17 Jul 2023, 08:17
This feature is not supported in the base kiosk system.
I have moved the topic to an appropriate forum category.
I have moved the topic to an appropriate forum category.
Please add [Solved] to your thread title if the solution was found.
fanthom
-
- White ninja
- Posts: 12
- Joined: 09 Jul 2023, 06:30
- Distribution: Porteus Kiosk 5.5
Access via SSH key
Post#3 by Chillkroete » 17 Jul 2023, 11:59
Thanks.
Appreciated, if somebody could help me in how to modify the ISO file in order to establish SSH-connection via SSH-key
Appreciated, if somebody could help me in how to modify the ISO file in order to establish SSH-connection via SSH-key
Chillkroete
-
- White ninja
- Posts: 12
- Joined: 09 Jul 2023, 06:30
- Distribution: Porteus Kiosk 5.5
Access via SSH key
Post#4 by Chillkroete » 19 Jul 2023, 14:55
Without too much of Linux knowledge, my approach is:
Does this proceeding makes sense?
I am especcially uncertain, if authorized_keys file can be processed by Porteus Kiosk and if the path is correct.
Thanks and kindest regards
- Generate SSH key via Putty and save it in a file file "authorized_keys"
- Create a module named SSHkey.xzm which copies the file "authorized_keys" to "/home/root/.ssh/authorized_keys"
- Include SSHkey.xzm in my ISO file and extract it to my USB stick via Balena Etcher
Does this proceeding makes sense?
I am especcially uncertain, if authorized_keys file can be processed by Porteus Kiosk and if the path is correct.
Thanks and kindest regards
Chillkroete
Access via SSH key
Post#5 by Grisu1 » 29 Aug 2023, 19:05
3 things would have to be done:
1. set openSSH service for key authentication (/etc/ssh/sshd_config).
2. be able to add a pubkey to the central configuration.
3. the key should then be written to authorized_keys
That would be a good security gain
Would be nice if this could be added to the very well done distro.
1. set openSSH service for key authentication (/etc/ssh/sshd_config).
2. be able to add a pubkey to the central configuration.
3. the key should then be written to authorized_keys
That would be a good security gain
Would be nice if this could be added to the very well done distro.
Grisu1