Xenial: phablet-shell ssh connection fails when using the key created by QtCreator
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
phablet-tools (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Environment: Xenial 16.04
Summary:
Keys created by QtCreator can't be used with phablet-shell. Note: this is probably a more generic ssh problem.
How to reproduce:
1) Install Ubuntu SDK (I'm using QtCreator 3.5.1 based on Qt 5.6.0, from SDK's experimental PPA)
2) Tools->
3) Select "password" as auth type and fill in IP and username, then click Next and Finish
4) Click on "Create new" next to "Private key file:"
5) now remove .ssh/authorized
6) run phablet-shell. It will read the newest key from .ssh (which, at this point, will be the one we've just created) and copy it to .ssh/authorized
7) phablet-shell will fail to connect, returning error
sign_and_
QtCreator creates a 1024bit RSA key, although I could NOT reproduce the problem using a key generated with "ssh-keygen -t rsa -b 1024".
I also tried creating a 2048bit key using QtCreator, and that failed with the same error.
It seems all keys created by QtCreator are unusable to connect to the device using phablet-shell (or more generically ssh)
https:/
openssh-client:
Installed: 1:7.2p2-4ubuntu1
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.