Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Re: configure password prompt in SSH

Subject: Re: configure password prompt in SSH
Date: Tue, 25 Oct 2005 11:57:45 +1000
Manuel López-Ibáñez wrote:
Hi,
I get "Password: " prompts when a ssh into linux machines and "user (at) hostname's password: " when I log into OpenBSD. The OpenBSD machine has OpenSSH_4.1 and GNU/Linux has OpenSSH_3.9, so maybe this was introduced between those versions. I really think it is nice that it tells the hostname.


So the question is, is it possible to configure the prompt for password of SSH? If so, how it is done?

Kind of. The reason you're seeing different prompts is that they're using different authentication methods within the ssh protocol. Your OpenBSD machine is using "password" authentication, whereas your Linux system is using "keyboard-interactive" authentication.


In "keyboard-interactive", the prompt is supplied by the server (via PAM, in your case). In "password" authentication, the prompt is generated by the client.

As long as the server supports it, the easy way to get it to do what you want is is to tell your client to try "password" authentication first (see PreferredAuthentications in ssh_config(5).

Future versions of OpenSSH will probably include a host identifier of some description with keyboard-interactive prompts.

If not, won't it be better that the password prompt of OpenSSH in GNU/Linux is the same that the one in OpenBSD ?

I have searched the openssh web, read the man pages of ssh_config and sshd_config. The only reference [1] I found to something similar does not clarify anything at all.

Maybe there should be an FAQ entry for this.

--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

<Prev in Thread] Current Thread [Next in Thread>