[Bash-completion-devel] Bug#788392: scp completion ignores port number

Anthony DeRobertis anthony at derobert.net
Wed Jun 10 21:26:19 UTC 2015


Package: bash-completion
Version: 1:2.1-4.1
Severity: normal
File: /usr/share/bash-completion/completions/ssh

$ scp -P 1234 192.168.0.1:<TAB><TAB>

attempts to complete file names by doing an ssh to 192.168.0.1 on port
22, not port 1234. Typically that'll result in connection refused or
(eventually) connection timed out. But it could also, e.g., with port
forwarding, result in connecting to the wrong sshd.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable'), (150, 'stable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.0.1-p+ (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bash-completion depends on:
ii  bash  4.3-12
ii  dpkg  1.18.1

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information



More information about the Bash-completion-devel mailing list