Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-3200

sftp BINHOST ignores '-P' in PORTAGE_SSH_OPTS

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • x86-64bit generic_64

      Using an sftp package server, PORTAGE_SSH_OPTS works for options such as "-i /path/to/my/key" but it does not work for either "-P 2222" or "-oPort=2222". I confirmed in the firewall logs of the package server that emerge is attempting to connect to the sftp server via port 22, and not the port specified in PORTAGE_SSH_OPTS.

      Portions of my make.conf:

      PORTAGE_BINHOST="sftp://packages@my.server.com/packages"
      PORTAGE_SSH_OPTS="-P 2222"
      #PORTAGE_SSH_OPTS="-oPort=22"
      #PORTAGE_SSH_OPTS="-i /path/to/my/key"
      FEATURES="${FEATURES} getbinpkg"
      

      Note that uppercase P is correct for sftp (lowercase p is used for ssh).

            Unassigned Unassigned
            hick518 hick518
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: