-
Notifications
You must be signed in to change notification settings - Fork 199
ShellDriver: add optional arg dest_authorized_keys #1631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
ShellDriver: add optional arg dest_authorized_keys #1631
Conversation
Add an addition optional arg "dest_authorized_keys" with the default value of ```~/.ssh/authorized_keys```, An example where this might be used is when an embedded system uses dropbear as it's ssh server daemon. In such a case, the authorized_keys file is ```/etc/dropbear/authorized_keys``` Additionally, the ```put_key_file``` takes an optional ```dest_authorized_keys``` function parameter which defaults to the above arg. Fixes: #labgrid-project#1626 Signed-off-by: Perry Melange <[email protected]>
…ys arg Signed-off-by: Perry Melange <[email protected]>
Isn't a keyword argument with default for the |
put_ssh_key() is called from on_activate(). So, no. I don't think it would work as you suggested. labgrid/labgrid/driver/shelldriver.py Lines 70 to 75 in 0b9dd26
|
Making this an automatic upload on |
I can imagine that removing the put_ssh_key() from on_activate() will break a lot of people's code. So making that change, which is totally the decision of the maintainers, is totally fine with me as I would be aware of it and can modify my code. I used the |
ShellDriver: add optional arg dest_authorized_keys
Add an addition optional arg "dest_authorized_keys" with the default value of
~/.ssh/authorized_keys
,An example where this might be used is when an embedded system uses dropbear as it's ssh server daemon. In such a case, the authorized_keys file is
/etc/dropbear/authorized_keys
Additionally, the
put_key_file
takes an optionaldest_authorized_keys
function parameter which defaults to the above arg.Update docs
Checklist
Fixes: #1626