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

@ -138,7 +138,8 @@ def sideload(args):
arch = args.arch
user = args.user
host = args.host
pmb.sideload.sideload(args, user, host, arch, args.install_key, args.packages)
pmb.sideload.sideload(args, user, host, args.port, arch, args.install_key,
args.packages)
def chroot(args):