No username prompt SSHD

View: New views
7 Messages — Rating Filter:   Alert me  

No username prompt SSHD

by asterix2112 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

All,

  Hi, this is probably a dumb newbie question but I searched all over and can not find an answer.  
  I have sshd set up on my server, and all I want is just username/password authentication, but all I can seem to get when I log on from another computer is a password prompt.  And it will only accept the root password (with PermitRootLogin yes, if set to no it will not work - and I don't want root to be able to log on).  How to I get the username prompt?

Thanks all, my sshd.config is below.  - John

Port 22
Protocol 2
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
#HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_dsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
ServerKeyBits 768

# Logging
# obsoletes QuietMode and FascistLogging
SyslogFacility AUTH
#LogLevel INFO

# Authentication:

LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6

#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile     .ssh/authorized_keys

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# Change to yes to enable built-in password authentication.
PasswordAuthentication yes
PermitEmptyPasswords no

# Change to no to disable PAM authentication
ChallengeResponseAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

UsePAM yes

#AllowTcpForwarding yes
#GatewayPorts no

AllowUsers asterix, bro, root

#X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin yes
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10

# no default banner path
#Banner /some/path

# override default of no subsystems
Subsystem       sftp    /usr/libexec/sftp-server

Re: No username prompt SSHD

by ViersOnline :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

'tis client side not server side

$ ssh login@server

or

$ ssh -l login serveur
( if omitted login is client side login)

--viers

asterix2112 wrote:

>All,
>
>  Hi, this is probably a dumb newbie question but I searched all over and
>can not find an answer.  
>  I have sshd set up on my server, and all I want is just username/password
>authentication, but all I can seem to get when I log on from another
>computer is a password prompt.  And it will only accept the root password
>(with PermitRootLogin yes, if set to no it will not work - and I don't want
>root to be able to log on).  How to I get the username prompt?
>
>Thanks all, my sshd.config is below.  - John
>
>Port 22
>Protocol 2
>#AddressFamily any
>#ListenAddress 0.0.0.0
>#ListenAddress ::
>
># HostKey for protocol version 1
>#HostKey /etc/ssh/ssh_host_key
>#HostKeys for protocol version 2
>#HostKey /etc/ssh/ssh_host_dsa_key
>
># Lifetime and size of ephemeral version 1 server key
>#KeyRegenerationInterval 1h
>ServerKeyBits 768
>
># Logging
># obsoletes QuietMode and FascistLogging
>SyslogFacility AUTH
>#LogLevel INFO
>
># Authentication:
>
>LoginGraceTime 2m
>PermitRootLogin yes
>#StrictModes yes
>#MaxAuthTries 6
>
>#RSAAuthentication yes
>#PubkeyAuthentication yes
>#AuthorizedKeysFile     .ssh/authorized_keys
>
># For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
>#RhostsRSAAuthentication no
># similar for protocol version 2
>#HostbasedAuthentication no
># Change to yes if you don't trust ~/.ssh/known_hosts for
># RhostsRSAAuthentication and HostbasedAuthentication
>#IgnoreUserKnownHosts no
># Don't read the user's ~/.rhosts and ~/.shosts files
>#IgnoreRhosts yes
>
># Change to yes to enable built-in password authentication.
>PasswordAuthentication yes
>PermitEmptyPasswords no
>
># Change to no to disable PAM authentication
>ChallengeResponseAuthentication yes
>
># Kerberos options
>#KerberosAuthentication no
>#KerberosOrLocalPasswd yes
>#KerberosTicketCleanup yes
>#KerberosGetAFSToken no
>
># GSSAPI options
>#GSSAPIAuthentication no
>#GSSAPICleanupCredentials yes
>
>UsePAM yes
>
>#AllowTcpForwarding yes
>#GatewayPorts no
>
>AllowUsers asterix, bro, root
>
>#X11Forwarding yes
>#X11DisplayOffset 10
>#X11UseLocalhost yes
>#PrintMotd yes
>#PrintLastLog yes
>#TCPKeepAlive yes
>#UseLogin yes
>#UsePrivilegeSeparation yes
>#PermitUserEnvironment no
>#Compression delayed
>#ClientAliveInterval 0
>#ClientAliveCountMax 3
>#UseDNS yes
>#PidFile /var/run/sshd.pid
>#MaxStartups 10
>
># no default banner path
>#Banner /some/path
>
># override default of no subsystems
>Subsystem       sftp    /usr/libexec/sftp-server
>--
>View this message in context: http://www.nabble.com/No-username-prompt-SSHD-t1399543.html#a3764497
>Sent from the SSH (Secure Shell) forum at Nabble.com.
>
>
>
>  
>

RE: No username prompt SSHD

by Patrick Morris-2 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

This is most likely because your SSH client is sending a username.

-----Original Message-----
From: asterix2112 [mailto:connor_john@...]
Sent: Wednesday, April 05, 2006 6:28 AM
To: secureshell@...
Subject: No username prompt SSHD


All,

  Hi, this is probably a dumb newbie question but I searched all over and
can not find an answer.  
  I have sshd set up on my server, and all I want is just username/password
authentication, but all I can seem to get when I log on from another
computer is a password prompt.  And it will only accept the root password
(with PermitRootLogin yes, if set to no it will not work - and I don't want
root to be able to log on).  How to I get the username prompt?



Re: No username prompt SSHD

by ilaiy :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

No it is the server side because when you just to do a " ssh server" .
It would take the user you have logged in as.

The documentation says it is taken from the env " LOGNAME" but I am
not very sure about this ..

./thanks
ilaiy

On 4/6/06, ViersOnline <viers@...> wrote:

> 'tis client side not server side
>
> $ ssh login@server
>
> or
>
> $ ssh -l login serveur
> ( if omitted login is client side login)
>
> --viers
>
> asterix2112 wrote:
>
> >All,
> >
> >  Hi, this is probably a dumb newbie question but I searched all over and
> >can not find an answer.
> >  I have sshd set up on my server, and all I want is just username/password
> >authentication, but all I can seem to get when I log on from another
> >computer is a password prompt.  And it will only accept the root password
> >(with PermitRootLogin yes, if set to no it will not work - and I don't want
> >root to be able to log on).  How to I get the username prompt?
> >
> >Thanks all, my sshd.config is below.  - John
> >
> >Port 22
> >Protocol 2
> >#AddressFamily any
> >#ListenAddress 0.0.0.0
> >#ListenAddress ::
> >
> ># HostKey for protocol version 1
> >#HostKey /etc/ssh/ssh_host_key
> >#HostKeys for protocol version 2
> >#HostKey /etc/ssh/ssh_host_dsa_key
> >
> ># Lifetime and size of ephemeral version 1 server key
> >#KeyRegenerationInterval 1h
> >ServerKeyBits 768
> >
> ># Logging
> ># obsoletes QuietMode and FascistLogging
> >SyslogFacility AUTH
> >#LogLevel INFO
> >
> ># Authentication:
> >
> >LoginGraceTime 2m
> >PermitRootLogin yes
> >#StrictModes yes
> >#MaxAuthTries 6
> >
> >#RSAAuthentication yes
> >#PubkeyAuthentication yes
> >#AuthorizedKeysFile     .ssh/authorized_keys
> >
> ># For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
> >#RhostsRSAAuthentication no
> ># similar for protocol version 2
> >#HostbasedAuthentication no
> ># Change to yes if you don't trust ~/.ssh/known_hosts for
> ># RhostsRSAAuthentication and HostbasedAuthentication
> >#IgnoreUserKnownHosts no
> ># Don't read the user's ~/.rhosts and ~/.shosts files
> >#IgnoreRhosts yes
> >
> ># Change to yes to enable built-in password authentication.
> >PasswordAuthentication yes
> >PermitEmptyPasswords no
> >
> ># Change to no to disable PAM authentication
> >ChallengeResponseAuthentication yes
> >
> ># Kerberos options
> >#KerberosAuthentication no
> >#KerberosOrLocalPasswd yes
> >#KerberosTicketCleanup yes
> >#KerberosGetAFSToken no
> >
> ># GSSAPI options
> >#GSSAPIAuthentication no
> >#GSSAPICleanupCredentials yes
> >
> >UsePAM yes
> >
> >#AllowTcpForwarding yes
> >#GatewayPorts no
> >
> >AllowUsers asterix, bro, root
> >
> >#X11Forwarding yes
> >#X11DisplayOffset 10
> >#X11UseLocalhost yes
> >#PrintMotd yes
> >#PrintLastLog yes
> >#TCPKeepAlive yes
> >#UseLogin yes
> >#UsePrivilegeSeparation yes
> >#PermitUserEnvironment no
> >#Compression delayed
> >#ClientAliveInterval 0
> >#ClientAliveCountMax 3
> >#UseDNS yes
> >#PidFile /var/run/sshd.pid
> >#MaxStartups 10
> >
> ># no default banner path
> >#Banner /some/path
> >
> ># override default of no subsystems
> >Subsystem       sftp    /usr/libexec/sftp-server
> >--
> >View this message in context: http://www.nabble.com/No-username-prompt-SSHD-t1399543.html#a3764497
> >Sent from the SSH (Secure Shell) forum at Nabble.com.
> >
> >
> >
> >
> >
>

Re: No username prompt SSHD No username prompt SSHD

by Pablo Cardoso :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

asterix,

    This is sure a newbie question (not dumb)! I don't know how to set sshd to prompt for a username but you can define the remote user in your command. Instead of issuing a command like "ssh remotemachine", you can use "ssh user@remotemachine" to log on the remote machine as another user! Is this the answer you're looking for or do you really need to see a "type the username" prompt? ;)

HTH!

Best regards,
Pablo



Patrick Morris escreveu:
This is most likely because your SSH client is sending a username.

-----Original Message-----
From: asterix2112 [connor_john@...] 
Sent: Wednesday, April 05, 2006 6:28 AM
To: secureshell@...
Subject: =?us-ascii?Q?No_username_prompt_SSHD_No_username_prompt_SSHD?=


All,

  Hi, this is probably a dumb newbie question but I searched all over and
can not find an answer.  
  I have sshd set up on my server, and all I want is just username/password
authentication, but all I can seem to get when I log on from another
computer is a password prompt.  And it will only accept the root password
(with PermitRootLogin yes, if set to no it will not work - and I don't want
root to be able to log on).  How to I get the username prompt?



  

Re: No username prompt SSHD

by Patrick Morris-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

You are mistaken.

Most SSH clients will, by default, send the name you are currently logged
in with to the server.

On Thu, 06 Apr 2006, ilaiy wrote:

> No it is the server side because when you just to do a " ssh server" .
> It would take the user you have logged in as.
>
> The documentation says it is taken from the env " LOGNAME" but I am
> not very sure about this ..

Re: No username prompt SSHD

by Robert Hajime Lanning :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

No, it is the client side.
The client takes the current user and passes that to the server as the
username to
login as.

To override this you must supply a username to the client in one of two ways:
$ ssh <user>@<server>

or

$ ssh -l <user> <server>

The client "ssh" (not the server "sshd") would need to prompt the user for the
username, before sending it over to the server.  This has never been done for
unix ssh clients.  Windows clients are another story.

SSH's user interface is modeled after the r* commands (rlogin/rsh/rcp/rcmd).  In
fact, SSH was designed to be able to be a complete replacement for the
r* commands.
You could delete rsh and rename ssh to rsh, and every program the was
designed to
use rsh, would still work fine.

On 4/6/06, ilaiy <ilaiy.e@...> wrote:

> No it is the server side because when you just to do a " ssh server" .
> It would take the user you have logged in as.
>
> The documentation says it is taken from the env " LOGNAME" but I am
> not very sure about this ..
>
> ./thanks
> ilaiy
>
> On 4/6/06, ViersOnline <viers@...> wrote:
> > 'tis client side not server side
> >
> > $ ssh login@server
> >
> > or
> >
> > $ ssh -l login serveur
> > ( if omitted login is client side login)
> >
> > --viers
> >
> > asterix2112 wrote:
> >
> > >All,
> > >
> > >  Hi, this is probably a dumb newbie question but I searched all over and
> > >can not find an answer.
> > >  I have sshd set up on my server, and all I want is just username/password
> > >authentication, but all I can seem to get when I log on from another
> > >computer is a password prompt.  And it will only accept the root password
> > >(with PermitRootLogin yes, if set to no it will not work - and I don't want
> > >root to be able to log on).  How to I get the username prompt?
> > >
> > >Thanks all, my sshd.config is below.  - John
> > >
> > >Port 22
> > >Protocol 2
> > >#AddressFamily any
> > >#ListenAddress 0.0.0.0
> > >#ListenAddress ::
> > >
> > ># HostKey for protocol version 1
> > >#HostKey /etc/ssh/ssh_host_key
> > >#HostKeys for protocol version 2
> > >#HostKey /etc/ssh/ssh_host_dsa_key
> > >
> > ># Lifetime and size of ephemeral version 1 server key
> > >#KeyRegenerationInterval 1h
> > >ServerKeyBits 768
> > >
> > ># Logging
> > ># obsoletes QuietMode and FascistLogging
> > >SyslogFacility AUTH
> > >#LogLevel INFO
> > >
> > ># Authentication:
> > >
> > >LoginGraceTime 2m
> > >PermitRootLogin yes
> > >#StrictModes yes
> > >#MaxAuthTries 6
> > >
> > >#RSAAuthentication yes
> > >#PubkeyAuthentication yes
> > >#AuthorizedKeysFile     .ssh/authorized_keys
> > >
> > ># For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
> > >#RhostsRSAAuthentication no
> > ># similar for protocol version 2
> > >#HostbasedAuthentication no
> > ># Change to yes if you don't trust ~/.ssh/known_hosts for
> > ># RhostsRSAAuthentication and HostbasedAuthentication
> > >#IgnoreUserKnownHosts no
> > ># Don't read the user's ~/.rhosts and ~/.shosts files
> > >#IgnoreRhosts yes
> > >
> > ># Change to yes to enable built-in password authentication.
> > >PasswordAuthentication yes
> > >PermitEmptyPasswords no
> > >
> > ># Change to no to disable PAM authentication
> > >ChallengeResponseAuthentication yes
> > >
> > ># Kerberos options
> > >#KerberosAuthentication no
> > >#KerberosOrLocalPasswd yes
> > >#KerberosTicketCleanup yes
> > >#KerberosGetAFSToken no
> > >
> > ># GSSAPI options
> > >#GSSAPIAuthentication no
> > >#GSSAPICleanupCredentials yes
> > >
> > >UsePAM yes
> > >
> > >#AllowTcpForwarding yes
> > >#GatewayPorts no
> > >
> > >AllowUsers asterix, bro, root
> > >
> > >#X11Forwarding yes
> > >#X11DisplayOffset 10
> > >#X11UseLocalhost yes
> > >#PrintMotd yes
> > >#PrintLastLog yes
> > >#TCPKeepAlive yes
> > >#UseLogin yes
> > >#UsePrivilegeSeparation yes
> > >#PermitUserEnvironment no
> > >#Compression delayed
> > >#ClientAliveInterval 0
> > >#ClientAliveCountMax 3
> > >#UseDNS yes
> > >#PidFile /var/run/sshd.pid
> > >#MaxStartups 10
> > >
> > ># no default banner path
> > >#Banner /some/path
> > >
> > ># override default of no subsystems
> > >Subsystem       sftp    /usr/libexec/sftp-server
> > >--
> > >View this message in context: http://www.nabble.com/No-username-prompt-SSHD-t1399543.html#a3764497
> > >Sent from the SSH (Secure Shell) forum at Nabble.com.
> > >
> > >
> > >
> > >
> > >
> >
>


--
And, did Guloka think the Ulus were too ugly to save?
                                         -Centauri