On Wed, May 06, 2015 at 01:02:42PM +0300, Hleb Valoshka wrote:
> Возможно я не правильно понимаю man 5 ssh_config, но вот такой конфиг:
> 
> User login1
> 
> Host host1
> User login2
> 
> Host host2
> HostName fqdn2
> 
> 
> должен работать следующим образом: если я захожу на host1, то мой
> логин должет быть login2, если я захожу на host2 или другой хост, то
> логин должен быть login1.
> 
> Или я не прав, или в OpenSSH_6.7p1 Debian-5, OpenSSL 1.0.1k 8 Jan 2015 есть 
> баг.

 В самом начале man ssh_config(5) сказано:

     For each parameter, the first obtained value will be used.
     ...
     Since the first obtained value for each parameter is used, more host-spe-
     cific declarations should be given near the beginning of the file, and
     general defaults at the end.
-- 
 Eugene Berdnikov


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: https://lists.debian.org/[email protected]

Ответить