Skip to content

ssh-ca: remove passhrase on ssh private key - #12

Open
fanougon wants to merge 1 commit into
mainfrom
WIP/f.anougon@phytec.de/remove_passphrase_ssh_ca_user_root
Open

ssh-ca: remove passhrase on ssh private key#12
fanougon wants to merge 1 commit into
mainfrom
WIP/f.anougon@phytec.de/remove_passphrase_ssh_ca_user_root

Conversation

@fanougon

Copy link
Copy Markdown

Description

For testing purposes in PTF-LIB, the SSH private key should not be protected by a phrassphrase.

for testing purposes in PTF-LIB, the SSH private key must not be
protected by a phrassphrase.

Signed-off-by: Franc Anougon <f.anougon@phytec.de>
@wdmegrv

wdmegrv commented Aug 11, 2026

Copy link
Copy Markdown

This is not needed, see docs of NetworkService

https://labgrid.readthedocs.io/en/latest/configuration.html#networkservice

@fanougon

Copy link
Copy Markdown
Author

This is not needed, see docs of NetworkService

https://labgrid.readthedocs.io/en/latest/configuration.html#networkservice

Thanks for the comment. There is something strange. It stands following in the documentation:

The example describes a remote SSH connection to the computer example. 
computer with the username root. Set the optional password password property 
to make SSH login with a password instead of the key file

In our context, we log in using a key file. I don't think password was meant to be passphrase. I think the driver just waits for an input request and enters the passphrase as the password.

But it works.

@sriedmueller

@sriedmueller

Copy link
Copy Markdown

This is not needed, see docs of NetworkService
https://labgrid.readthedocs.io/en/latest/configuration.html#networkservice

Thanks for the comment. There is something strange. It stands following in the documentation:

The example describes a remote SSH connection to the computer example. 
computer with the username root. Set the optional password password property 
to make SSH login with a password instead of the key file

In our context, we log in using a key file. I don't think password was meant to be passphrase. I think the driver just waits for an input request and enters the passphrase as the password.

But it works.

@sriedmueller

Hi @wdmegrv, AFAIK the password supplied to the NetworkService is the password used to login via SSH and not the passphrase used to decrypt the private key. @fanougon needs a key based login since password login is disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants