[Bash-completion-devel] Bug#525293: bash-completion: scp completion clutters screen with error "permission denied"

Rapha?l Hertzog hertzog at debian.org
Thu Apr 23 14:11:20 UTC 2009


Package: bash-completion
Version: 1:1.0-2
Severity: normal

Trying to complete scp with <tab> results in:
rhertzog at rivendell:~$ scp bash: /home/rhertzog/.ssh/debian_known_hosts: Permission denied

Here's my .ssh/config:
---
# Localhost is used to port-forward to other machines
# and we don't want to mix their host keys in the usual
# list of known_hosts
Host localhost 10.0.2.2 10.0.2.45
    StrictHostKeyChecking no
    UserKnownHostsFile /dev/null

# Debian-specific setup
Host wagner.debian.org
    User rhertzog
    IdentityFile ~/.ssh/id_wagner

Host alioth.debian.org
    IdentityFile ~/.ssh/id_alioth

Host *.debian.org
    User hertzog
    IdentityFile ~/.ssh/id_debian
    IdentitiesOnly yes
    UserKnownHostsFile ~/.ssh/debian_known_hosts
    StrictHostKeyChecking yes

# Setup to go over braindead firewalls where 443 goes out
Host gluck.debian.org
    Port 443
    ForwardAgent no
    ForwardX11 no

Host *.overgluck
    User hertzog
    ProxyCommand ssh -q -a -p 443 -x gluck.debian.org 'nc -w1 $(basename %h .overgluck) 22'
    ForwardAgent no
    ForwardX11 no
---

Permissions look normal:
rhertzog at rivendell:~$ ls -al .ssh/
total 164
drwx------  4 rhertzog rhertzog  4096 avr 14 10:18 .
drwxr-xr-x 81 rhertzog rhertzog  4096 avr 23 15:55 ..
-rw-------  1 rhertzog rhertzog  1114 avr 14 10:18 config
-rw-r--r--  1 rhertzog rhertzog 24624 mar 13 19:00 debian_known_hosts
-rw-------  1 rhertzog rhertzog  3311 mai 15  2008 id_alioth
-rw-r--r--  1 rhertzog rhertzog   758 mai 15  2008 id_alioth.pub
-rw-------  1 rhertzog rhertzog  3311 mai 15  2008 id_debian
-rw-r--r--  1 rhertzog rhertzog   749 avr 14 10:05 id_debian.pub
-rw-------  1 rhertzog rhertzog  1743 mai 13  2008 id_rsa
-rw-r--r--  1 rhertzog rhertzog   630 jun 10  2008 id_rsa.keystore
-rw-r--r--  1 rhertzog rhertzog   418 avr 14 10:05 id_rsa.pub
-rw-------  1 rhertzog rhertzog  6431 mai 15  2008 id_wagner
-rw-r--r--  1 rhertzog rhertzog  1446 mai 15  2008 id_wagner.pub
-rw-------  1 rhertzog rhertzog 40277 mar 19 12:13 known_hosts
-rw-r--r--  1 rhertzog rhertzog 34651 mai 29  2008 known_hosts.old
drwxr-xr-x  2 rhertzog rhertzog  4096 mai 15  2008 NEW
drwxr-xr-x  2 rhertzog rhertzog  4096 mai 13  2008 PRE-DSA-1571


So unless it's trying to execute the file, I don't understand
where the error message comes from.

Cheers,
-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (150, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.29-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash-completion depends on:
ii  bash                          3.2-5      The GNU Bourne Again SHell

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information






More information about the Bash-completion-devel mailing list