Server hostname showing in SSH password prompt

Hi, after upgrading from FreeBSD 9.1-STABLE to 9.2-STABLE, when I SSH to my server my server hostname is showing in the password prompt:

Code:
Password for username@MyServerHostName:

How to disable the hostname from showing?

Thanks.
 
Then instead of USERNAME@HOST_NAME try USERNAME@HOST_IP. You can edit sshd_config, see sshd_config(5). Or, give this guide a try.

P.S.: You should carefully inspect the guide and understand it well, and back up.

Just out of curiosity, why do you want to hide your HOST_NAME or HOST_IP? If it's a website, that info is publicly available already.
 
The sshd prompt is coming from PAM. You could change your local copy and recompile PAM, /usr/src/contrib/openpam/lib/pam_get_authtok.c. View here: http://svnweb.freebsd.org/socsvn/mirror/FreeBSD/release/9.2.0/contrib/openpam/lib/pam_get_authtok.c

This particular change was merged into 9.2 in the following changelist:
Code:
Revision 248769 - (view) (download) (annotate) - [select for diffs]
Modified Fri Mar 1 19:42:50 2013 UTC (8 months, 1 week ago) by des
Original Path: mirror/FreeBSD/stable/9/contrib/openpam/lib/pam_get_authtok.c
File length: 6741 byte(s)
Diff to previous 226016

Pull in OpenPAM Micrampelis from head.  Also merge a few minor module
changes, most importantly support for ECDSA keys in pam_ssh.
 
Back
Top