среда, 12 июня 2013 г.

bash ssh hosts auto completion

  1. First of all you should have bash_completion module installed (usually it's installed by default in most Linux-based OS).
  2. Disable host hashing. Set
  3. "HashKnownHosts no"
    in
    /etc/ssh/ssh_config (or ~/.ssh/config just for your profile)
  4. Regenerate known_hosts:
    rm ~/.ssh/known_hosts
Now shell will 'remember' your ssh hosts and allow to use hosts auto completion.

Комментариев нет:

Отправить комментарий