-
Notifications
You must be signed in to change notification settings - Fork 199
Request: ShellDriver: put_ssh_key would benefit from a destination file attribute #1626
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
Comments
Workaround: |
pmelange
added a commit
to pmelange/labgrid
that referenced
this issue
Mar 10, 2025
Add an addition optional arg "dest_authorized_keys" with the default value of ```~/.ssh/authorized_keys```, And 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 <isprotejesvalkata@gmail.com>
pmelange
added a commit
to pmelange/labgrid
that referenced
this issue
Mar 10, 2025
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 <isprotejesvalkata@gmail.com>
3 tasks
pmelange
added a commit
to pmelange/labgrid
that referenced
this issue
Mar 10, 2025
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 <isprotejesvalkata@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The call
put_ssh_key
assumes a destination file of~/.ssh/authroized_keys
on the DUT. Yet when an embedded system (such as OpenWrt) uses dropbear as the ssh server daemon, the authorized_keys file may be located elsewhere. For example, with OpenWrt, the authorized_keys file is found in/etc/dropbear/authorized_keys
An optional attribute such as
dest_authorized_keys
with a default value set to~/.ssh/authorized_keys
which can be overridden with an alternative filename for the DUT would be a practical solution.The text was updated successfully, but these errors were encountered: