Bug ID 1192178
Summary AutoYaST <authorized_key> not working on openSUSE Tumbleweed
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware x86-64
OS openSUSE Tumbleweed
Status NEW
Severity Major
Priority P5 - None
Component AutoYaST
Assignee yast2-maintainers@suse.de
Reporter opensuse@wolke7.net
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Created attachment 853443 [details]
/var/log/YaST2/*; /var/log/zypp/*; /var/log/zypper.log; etc.

Hello,

I'm making my own autoinst.xml files. Everything works fine but I cannot give a
user
authorized_keys file. After installing, I login and find there is no
$HOME/.ssh/authorized_keys files, even no $HOME/.ssh folder.

Below is part of autoinst.xml:

<user t="map">
    <username>user_name</username>
    <encrypted t="boolean">true</encrypted>
    <user_password>xxxxxxxxxxxx</user_password>
    <authorized_keys t="list">
        <authorized_key>ssh-rsa xxxxxxxxxx</authorized_key>
    </authorized_keys>
</user>

Is there a bug that authorized_keys cannot be assigned in AutoYast?

I search online finding someone else uses <chroot-scripts> to add
authorized_key.
eg:https://gist.github.com/ofrzeta/60d895d8ddbd581ac9f08b16c36ba6a9
which may confirm that <authorized_keys> in AutoYast doesn't work.

Below I attach the log files:
/etc/os-release
/var/log/zypper.log
/var/log/YaST2/*
/var/log/zypp/*
autoinst.xml

Thank you.


You are receiving this mail because: