Bug 12381

Summary: devtool: deploy-target: only set port when explicitly requested
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Patrick Ohly <patrick.ohly>
Component: devtools / tool chainAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher
Version: unspecified   
Target Milestone: 2.5 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Patrick Ohly 2017-11-24 08:51:06 UTC
I have an entry in .ssh/config where I set some parameters, including the port number, for a certain target machine. That port number gets overwritten with "-P 22" when using "devtool deploy-target <recipe> <my-target>", causing the operation to fail.

ssh should only be called with -P when -P/--port were explicitly set when invoking devtool. This is a slight change of behavior, but as 22 is the default already, users shouldn't notice.
Comment 1 Paul Eggleton 2018-03-06 11:52:00 UTC
Fix for this finally merged, my apologies for the delay (it got held up in a series with some broken patches):

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3bb00af9ab3c7271f32d94f8eb627c94b88fa565