Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Jul 2003 15:18:28 -0500
From:      Chris <racerx@makeworld.com>
To:        Paul Hoffman <phoffman@proper.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: SSH login banner: IP address instead of DNS name
Message-ID:  <3F01EC94.1000205@makeworld.com>
In-Reply-To: <p05210600bb27995038bc@[63.202.92.152]>
References:  <20030701104142.76899.qmail@web40608.mail.yahoo.com> <20030701190454.GA2286@rucus.net> <p05210600bb27995038bc@[63.202.92.152]>

next in thread | previous in thread | raw e-mail | index | archive | help
Paul Hoffman wrote:

> At 9:04 PM +0200 7/1/03, David Siebörger wrote:
>
>> At 12:41 PM on Tuesday  1 July 2003, Supote leelasupphakorn wrote:
>>
>>>  > Hi again. When I SSH into my 4.8 box, the first line of the 
>>> banner is:
>>>  > Last login: Mon Jun 30 19:31:44 2003 from 
>>> 15-characters-of-a-host-name
>>>  > That DNS name is truncated to 15 characters. I would much prefer an
>>>  > IP address. What do I need to change to get this?
>>>
>>>  > --Paul Hoffman
>>
>>
>> Run sshd with the -u 15 option.  You can do so by adding this line to
>> /etc/rc.conf:
>>
>>     sshd_flags="-u 15"
>
>
> Perfect, that's exactly what I needed. Thanks!
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"
>
>
try sshd_flags="-u0" instead (man sshd)

This will  show only the IP. In addition, this will halt the DNS lookups

-- 


Best regards,
                 Chris
______________________________________________________________________

PGP Fingerprint = D976 2575 D0B4 E4B0 45CC AA09 0F93 FF80 C01B C363

PGP Mail encouraged / preferred - keys available on common key servers
______________________________________________________________________
       01010010011000010110001101100101011100100101100000000000




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F01EC94.1000205>