This is a discussion on Re: suggested minor improvement to ssh argument parsing within the OpenSSH Development forums, part of the Networking and Network Related category; --===============1274405259== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= On Mon 2008-...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============1274405259==
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= On Mon 2008-03-31 08:41:11 -0400, John Vincent wrote: > I use "ssh" often, and within bash I find it useful to define the IP > address in "/etc/hosts" and then use the bash auto-complete feature > for the hsot name. For this to work bash needs to see a "@" in front > of the host name. This works perfectly for a command like "ssh > user@host". However if I want to use the current user by default, I > can't get the bash to auto complete the hostname. If anything, this sounds like an improvement that could be made to bash's host autocompletion for ssh, rather than something that should be changed in ssh itself. On a debian lenny system, if i enable bash completion [0], it actually does clean tab completion for hostnames based on the contents of ~/.ssh/config. Since this is a file under user control (as opposed to /etc/hosts, which should only be under sysadmin control), it's probably a better strategy anyway. What version of bash (and what distro) are you using? what's in your ~/.ssh/config? --dkg [0] on debian lenny, you can turn on bash completion functionality with: . /etc/bash_completion --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQIUAwUBR/EZE8zS7ZTSFznpAQIgjA/0Co9bRemKR4fZt+iC9z98pVIfgALp3aa0 +xnna4nWa6G6Cv4KjGzBfY7iVNArK4iDXZF1cW4Hj4Bl2clfFE 61o1upH5JWmK7R WxyYD/yepfAwAUORU/QslZQ6+kdsnYCFbsCmiyyYJmpHDz8qNsAR8epK3sVEYzzE jqiiJuxI7BQ7FJi3V2kX5QoR1fZd0cXfOk4xX7tmIr0O6xT8/bHp9Yy380u2ypcp bycGw45DcTAj1vb2yYRKpmyckh32qF+ZBH++n3dcuSGS3PGPjn sy47qcW7CgfKqM 2uEGAskHBkAHRztx8MA53PI/ecTs4uw3IOHrdv9ggHSX2RkFQHDej93V0D22z8ug saspWqRwUkm6K/geYfyGQ1+BMwHUJQ7k6ElRrLPTQCqQz+qJslMh/eviJJC17KWT u3fTxhvPDtRUmVyIUj9flNMFyE//u9216z6F47E4dStte2/TDuCuHc8mc+LFIHO+ xKiV1/DFB5D6aXIyfqb3EWh+0l6yJG/mA76G7q6GxPmKxGRu3gRRUe+T8UOFctjD OjLwZsBQqANob3wZAZ6LPXdDM8ek82YDquP68WmVnC0jyJmpwp 3qOxmHIrwK9H1S LPrku501ljRrQ9FVVci8oqFTw5rczmmMS8B5HYFifkVMlgQq2L Gjd0p93etlQEBj SiQUt2rlxA== =HCTz -----END PGP SIGNATURE----- --=-=-=-- --===============1274405259== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@mindrot.org https://lists.mindrot.org/mailman/li...enssh-unix-dev --===============1274405259==-- |