Page 1 of 1
Access via SSH Key
Posted: 26 Jul 2023, 21:03
by Chillkroete
Hi there,
as I unfortunately did not receive any feedback to my request in Porteus Kiosk subforum (
Access via SSH key), I am looking for help here, as I assume this quite basic function should be available for any distro.
I would like to connect to my Porteus Kiosk via an SSH Key instead of a password (latter case already works perfectly fine).
My approach is a module, which copies a file "authorized_keys" to "/home/root/.ssh/authorized_keys".
Any feedback, if this would be possible?
Potentially this function does already exist, but as the forum search requires at least 4 letters I cannot search for either "SSH" nor "Key". But googleing did not bring any answer unfortunately.
Any help here is appreciated. Thanks a lot!
Access via SSH Key
Posted: 28 Jul 2023, 08:26
by fanthom
Kiosk users can post only in the kiosk subforum.
This thread will be deleted after 2 days.
Thanks
Access via SSH Key
Posted: 28 Jul 2023, 12:22
by Chillkroete
Is there a difference between the SSH key functionality between Porteus and Porteus Kiosk?
What if I was looking for a solution for Porteus?
Thanks
Access via SSH Key
Posted: 28 Jul 2023, 15:05
by fanthom
Module requests section is for applications.
If you want an application then you post module request for it.
Your query is about 'how SSH works' so it does not fit here.
I'm moving it to 'Newbie questions' section.
Access via SSH Key
Posted: 28 Jul 2023, 19:19
by Ed_P
Chillkroete wrote: ↑26 Jul 2023, 21:03
But googleing did not bring any answer unfortunately.
None of these links helped?
https://www.google.com/search?q=site%3A ... s-wiz-serp
Access via SSH Key
Posted: 01 Aug 2023, 20:31
by Chillkroete
Thanks! Eventhough this Google querry is a quite smart approch to search in the forum, I unfortunately did not found a solution here.
Where do I stuck?
In etc/ssh there are 3 different types of public as well as private keys (RSA, ED25519, ECDSA). As far as I understand none of them is initially activated, so I need to uncomment the corresponding line in the "sshd_config" file.
I do not exactly understand what is meant by
Code: Select all
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
Further I cannot finde ".ssh/authorized_keys" which is specified later:
Code: Select all
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
#AuthorizedKeysFile<--->.ssh/authorized_keys
Current approach
After uncommenting the corresponding line for key file specification in "sshd_config", I copy the private key into a txt file, convert it into a ppk (by puttygen) and try to use this key for authentification. Unfortunately key authentification fails. Root password authentification runs like a charm.
Do I need to bring the uncommenting of the corresponding line in "sshd_config" into action somehow?
Thanks for your assistance!