You are not logged in.

#1 2023-04-03 14:14:46

barnd3
Member
Registered: 2023-02-07
Posts: 167

bash: AuthorizedKeysCommand: Kommando nicht gefunden

Hello,
I get the above error message when I issue the command: "AuthorizedKeysCommand /usr/bin/userdbctl ssh-authorized-keys %u".
What's missing?

Offline

#2 2023-04-03 14:39:41

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,668
Website

Re: bash: AuthorizedKeysCommand: Kommando nicht gefunden

barnd3 wrote:

What's missing?

A binary named AuthorizedKeysCommand in any of the folders in $PATH on your system.
What do you expect that particular program to do anyway?


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#3 2023-04-03 14:48:57

barnd3
Member
Registered: 2023-02-07
Posts: 167

Re: bash: AuthorizedKeysCommand: Kommando nicht gefunden

I switched my home directory to systemd-homed
I get the following error message

systemd-homed
Activation failed: Der notwendige Schlüssel ist nicht verfügbar

Offline

#4 2023-04-03 15:03:47

dogknowsnx
Guest

Re: bash: AuthorizedKeysCommand: Kommando nicht gefunden

'AuthorizedKeysCommand ...' is a config array used by 'ssh' afaiu. You're not supposed to manually run that.

Please post actual and complete (error) output and describe in more detail your issue/what you're trying to achieve.

Last edited by dogknowsnx (2023-04-03 15:07:59)

#5 2023-04-03 20:54:52

barnd3
Member
Registered: 2023-02-07
Posts: 167

Re: bash: AuthorizedKeysCommand: Kommando nicht gefunden

I have changed the home directory via "homectl" to systemd-homed, the home directory was encrypted and brought this error message. Then I wanted to make the key known with "AuthorizedKeysCommand", unfortunately this did not work, because the command is not known.

Offline

#6 2023-04-03 22:35:32

dogknowsnx
Guest

Re: bash: AuthorizedKeysCommand: Kommando nicht gefunden

Did you read/follow this when trying to set up systemd-homed?
What are the actual (complete) commands you executed? Do you now understand why 'bash' complained about the 'command not found'?

#7 2023-04-04 06:05:01

barnd3
Member
Registered: 2023-02-07
Posts: 167

Re: bash: AuthorizedKeysCommand: Kommando nicht gefunden

no i don't understand why "command not found" is displayed.
I left it for now and rebooted the system.
Thanks so far

Offline

Board footer

Powered by FluxBB