What version of bash-completion does this occur with? I have bash 4.1-2ubuntu4 and bash-completion 1:1.2-2ubuntu1 on Maverick amd64, and when I type "ssh -i ~/.ssh/" and then press tab, I see the options:
When I type "ssh -i ~/.ssh/id_rsa." and press tab, it expands to "ssh -i ~/.ssh/id_rsa.pub". So bash-completion works correctly for ssh -i on my system.
What version of bash-completion does this occur with? I have bash 4.1-2ubuntu4 and bash-completion 1:1.2-2ubuntu1 on Maverick amd64, and when I type "ssh -i ~/.ssh/" and then press tab, I see the options:
ek@Apok:~$ ssh -i ~/.ssh/
~/.ssh/id_rsa ~/.ssh/id_rsa.pub ~/.ssh/known_hosts
When I type "ssh -i ~/.ssh/id_rsa." and press tab, it expands to "ssh -i ~/.ssh/id_rsa.pub". So bash-completion works correctly for ssh -i on my system.