Re: suggested minor improvement to ssh argument parsing

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-...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-31-2008
Daniel Kahn Gillmor
 
Posts: n/a
Default Re: suggested minor improvement to ssh argument parsing

--===============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==--
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:18 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0