pmb.sideload: support non-standard SSH port (!2046)

This can be used for example to sideload packages to
pmbootstrap's QEMU which is running on the port 2222
by default, as follows:

  pmbootstrap sideload --host localhost --port 2222 --user user <pkg>

This adds a `--port` parameter to sideload subcommand.
If not specified, port defaults to 22.
This commit is contained in:
Alexey Min 2021-04-06 00:45:39 +03:00
parent 57c830c410
commit 2b620a0fdd
No known key found for this signature in database
GPG key ID: EBF5ECFFFEE34DED
3 changed files with 19 additions and 11 deletions

View file

@ -185,6 +185,9 @@ def arguments_sideload(subparser):
ret.add_argument("--host", help="ip of the device over wifi"
" (defaults to 172.16.42.1)",
default="172.16.42.1")
ret.add_argument("--port", help="SSH port of the device over wifi"
" (defaults to 22)",
default="22")
ret.add_argument("--user", help="use a different username than the"
" one set in init")
ret.add_argument("--arch", help="use a different architecture than the one"