Access via SSH Key

Post here if you are a new Porteus member and you're looking for some help.
Chillkroete
White ninja
White ninja
Posts: 12
Joined: 09 Jul 2023, 06:30
Distribution: Porteus Kiosk 5.5

Access via SSH Key

Post#1 by Chillkroete » 26 Jul 2023, 21:03

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!

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Access via SSH Key

Post#2 by fanthom » 28 Jul 2023, 08:26

Kiosk users can post only in the kiosk subforum.
This thread will be deleted after 2 days.

Thanks
Please add [Solved] to your thread title if the solution was found.

Chillkroete
White ninja
White ninja
Posts: 12
Joined: 09 Jul 2023, 06:30
Distribution: Porteus Kiosk 5.5

Access via SSH Key

Post#3 by Chillkroete » 28 Jul 2023, 12:22

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

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Access via SSH Key

Post#4 by fanthom » 28 Jul 2023, 15:05

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.
Please add [Solved] to your thread title if the solution was found.

User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Access via SSH Key

Post#5 by Ed_P » 28 Jul 2023, 19:19

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
Ed

Chillkroete
White ninja
White ninja
Posts: 12
Joined: 09 Jul 2023, 06:30
Distribution: Porteus Kiosk 5.5

Access via SSH Key

Post#6 by Chillkroete » 01 Aug 2023, 20:31

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!

Post Reply