Login von SSH verweigert??

Backup, Restore und Transfer von Daten
Post Reply
andre丨
Posts: 125
Joined: 2003-09-28 13:34
Contact:
 

Login von SSH verweigert??

Post by andre丨 »

Hallo,
ich habe die gepachte version von sshd installiert: chrootssh.sourceforge.net. Das kompilieren und installieren hat problemlos geklappt. Auch eine Verbindung auf den neuen SSH Server kommt zustande. Nur das einloggen schlägt fehl:

Code: Select all

login as: andre
andre@debian password:
Access denied
In den Log Files finde ich dazu nichts wirklich interessantes:

Code: Select all

Aug 22 13:04:35 debian sshd[23548]: Server listening on 0.0.0.0 port 22.
Aug 22 13:04:58 debian sshd[23630]: Failed password for andre from 84.171.79.186 port 25532 ssh2

Hat jmd. schon damit erfahrung gesammelt, oder weis jmd. woran das liegen könnte?

Ich bin für jeden Tip Dankbar!
Mit freundlichen Grüßen
Andre
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
Contact:
 

Re: Login von SSH verweigert??

Post by captaincrunch »

Also auf meinen Kisten kann ich mich auch nicht mit "andre" anmelden. Strange... :?

Mal ernsthaft: vermutlich wirst du wohl einen Fehler bei der Konfiguration gemacht haben, und ohne Logs etc. wird man dir wohl kaum helfen können.
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
andre丨
Posts: 125
Joined: 2003-09-28 13:34
Contact:
 

Re: Login von SSH verweigert??

Post by andre丨 »

wo finde ich denn noch tiefgehendere Logs dazu? Icb hab alles durchsucht und konnte nichts auffälliges finden :/
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
Contact:
 

Re: Login von SSH verweigert??

Post by captaincrunch »

Frag mal die Manpage zu ssh nach der "verbose"-Option.
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
andre丨
Posts: 125
Joined: 2003-09-28 13:34
Contact:
 

Re: Login von SSH verweigert??

Post by andre丨 »

Hallo,
vielen Dank für den Tip habe folgendes rausgefunden:

Code: Select all

Aug 22 14:20:28 web-xxl sshd[13859]: Server listening on 0.0.0.0 port 22.
Aug 22 14:20:28 web-xxl sshd[13859]: Generating 768 bit RSA key.
Aug 22 14:20:28 web-xxl sshd[13859]: RSA key generation complete.
Aug 22 14:20:48 web-xxl sshd[13954]: Connection from 84.171.79.186 port 12045
Aug 22 14:20:55 web-xxl sshd[13954]: Failed none for invalid user  andre from 84.171.79.186 port 12045 ssh2
Aug 22 14:32:35 web-xxl sshd[18936]: error: Could not get shadow information for NOUSER
Es scheint so als interessiert Ihn mein Passwort gar nicht was ich eingebe. "Failed none for invalid user andre from 84.171.79.186 port 12045 ssh2" kommt schon bevor ich das Passwort eingegeben hab!

Danke nochmals
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Login von SSH verweigert??

Post by Roger Wilco »

Gibt es den Benutzer "andre" überhaupt?
andre丨
Posts: 125
Joined: 2003-09-28 13:34
Contact:
 

Re: Login von SSH verweigert??

Post by andre丨 »

Ja.. das ist ja das komische. Egal mit welchem Benutzer ich es versuche die Meldung erscheint.. :(

Irgend ne Idee?
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Login von SSH verweigert??

Post by Roger Wilco »

aNdRe| wrote:Ja.. das ist ja das komische. Egal mit welchem Benutzer ich es versuche die Meldung erscheint.. :(

Irgend ne Idee?
Loggst du dich in ein chroot-Environment ein (wegen chrootssh)? Hast du das chroot-Environment richtig erstellt?
andre丨
Posts: 125
Joined: 2003-09-28 13:34
Contact:
 

Re: Login von SSH verweigert??

Post by andre丨 »

nein, ich logge mich in kein chroot ein. Das ist ein ganz normaler Shell Benutzer. Später sollen dort auch chroot Accounts erstellt werden.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Login von SSH verweigert??

Post by Joe User »

PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
andre丨
Posts: 125
Joined: 2003-09-28 13:34
Contact:
 

Re: Login von SSH verweigert??

Post by andre丨 »

Hallo,
ich habe gar kein AllowUsers eintrag bei mir.. also daran kanns leider auch nicht liegen! Ich bin echt Ratlos!
user996
Posts: 49
Joined: 2004-08-01 13:23
 

Re: Login von SSH verweigert??

Post by user996 »

dann füge doch einfach mal den Eintrag

AllowUsers andre

hinzu und teste
andre丨
Posts: 125
Joined: 2003-09-28 13:34
Contact:
 

Re: Login von SSH verweigert??

Post by andre丨 »

leider auch keine großen erfolge.

Nun steht folgendes in den Logs:

Code: Select all

Aug 23 07:44:57 web-xxl sshd[27061]: Server listening on 0.0.0.0 port 2201.
Aug 23 07:45:11 web-xxl sshd[27103]: Failed password for andre from 84.171.121.4 port 17223 ssh2

Das Passwort stimmt allerdings!
andre丨
Posts: 125
Joined: 2003-09-28 13:34
Contact:
 

Re: Login von SSH verweigert??

Post by andre丨 »

Alles sehr komisch,
habe es mal auf einem anderen Server installiert. Dort funktioniert der Login:

Code: Select all

Aug 23 07:29:36 debian sshd[32278]: Server listening on 0.0.0.0 port 2200.
Aug 23 07:29:48 debian sshd[32280]: Accepted password for andre from 84.171.121.4 port 25755 ssh2
Aug 23 07:36:39 debian sshd[32296]: socket: Address family not supported by protocol
Aug 23 07:36:39 debian sshd[32296]: Server listening on 0.0.0.0 port 2200.
Aug 23 07:36:39 debian sshd[32296]: Generating 768 bit RSA key.
Aug 23 07:36:39 debian sshd[32296]: RSA key generation complete.
Aug 23 07:37:19 debian sshd[32300]: Connection from 84.171.121.4 port 26882
Aug 23 07:37:25 debian sshd[32300]: Failed none for andre from 84.171.121.4 port 26882 ssh2
Aug 23 07:37:34 debian sshd[32300]: Accepted password for andre from 84.171.121.4 port 26882 ssh2
Weis echt keiner woran das liegen könnte? Brauche diesen Zugang dringend am andern Server!

Vielen Dank!
andre丨
Posts: 125
Joined: 2003-09-28 13:34
Contact:
 

Re: Login von SSH verweigert??

Post by andre丨 »

..und nochmal etwas genauer..

Fehler:

Code: Select all

Aug 23 09:49:18 web-xxl sshd[3437]: socket: Address family not supported by protocol
Aug 23 09:49:18 web-xxl sshd[3437]: debug1: Bind to port 22 on 0.0.0.0.
Aug 23 09:49:18 web-xxl sshd[3437]: Server listening on 0.0.0.0 port 22.
Aug 23 09:49:18 web-xxl sshd[3437]: Generating 768 bit RSA key.
Aug 23 09:49:18 web-xxl sshd[3437]: RSA key generation complete.
Aug 23 09:49:48 web-xxl PAM_unix[2292]: (ssh) session closed for user eln
Aug 23 09:49:48 web-xxl sshd[2292]: PAM pam_putenv: delete non-existent entry; MAIL
Aug 23 09:49:54 web-xxl sshd[3437]: debug1: Forked child 3599.
Aug 23 09:49:54 web-xxl sshd[3599]: Connection from 84.171.121.4 port 28277
Aug 23 09:49:54 web-xxl sshd[3599]: debug1: Client protocol version 2.0; client software version PuTTY-Release-0.57
Aug 23 09:49:54 web-xxl sshd[3599]: debug1: no match: PuTTY-Release-0.57
Aug 23 09:49:54 web-xxl sshd[3599]: debug1: Enabling compatibility mode for protocol 2.0
Aug 23 09:49:54 web-xxl sshd[3599]: debug1: Local version string SSH-1.99-OpenSSH_3.6.1p1
Aug 23 09:50:08 web-xxl sshd[3599]: Failed none for eln from 84.171.121.4 port 28277 ssh2
Aug 23 09:50:13 web-xxl sshd[3599]: Failed password for eln from 84.171.121.4 port 28277 ssh2
Aug 23 09:50:58 web-xxl sshd[3437]: debug1: Forked child 3882.
Danke für die Hilfe!!
flo
Posts: 2223
Joined: 2002-07-28 13:02
Location: Berlin
 

Re: Login von SSH verweigert??

Post by flo »

Probier doch mal, ob Du über einen Schlüssel ins System kommst.

Aber beim flüchtigen Draufschauen kommst es mir so vr, als ob der neue ssh-Daemon ein Problem mit PAM und/oder dem Zugriff auf die Passwort-Datei hat. (wenn es die User wirklich gibt)

flo.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Login von SSH verweigert??

Post by Joe User »

Code: Select all

cat /etc/ssh/sshd_config
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
andre丨
Posts: 125
Joined: 2003-09-28 13:34
Contact:
 

Re: Login von SSH verweigert??

Post by andre丨 »

Code: Select all

#       $OpenBSD: sshd_config,v 1.59 2002/09/25 11:17:16 markus Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options change a
# default value.

Port 22
Protocol 2,1
#ListenAddress 0.0.0.0
#ListenAddress ::

# HostKey for protocol version 1
#HostKey /usr/local/etc/ssh_host_key
# HostKeys for protocol version 2
#HostKey /usr/local/etc/ssh_host_rsa_key
#HostKey /usr/local/etc/ssh_host_dsa_key

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

# Logging
#obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
LogLevel DEBUG
# Authentication:

#LoginGraceTime 120
#PermitRootLogin yes
#StrictModes yes

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

# rhosts authentication should not be used
#RhostsAuthentication no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# For this to work you will also need host keys in /usr/local/etc/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

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

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

#AFSTokenPassing no

# Kerberos TGT Passing only works with the AFS kaserver
#KerberosTgtPassing no

# Set this to 'yes' to enable PAM keyboard-interactive authentication
# Warning: enabling this may bypass the setting of 'PasswordAuthentication'
#PAMAuthenticationViaKbdInt no

#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#KeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression yes

#MaxStartups 10
# no default banner path
#Banner /some/path
#VerifyReverseMapping no

# override default of no subsystems
Subsystem       sftp    /usr/local/libexec/sftp-server
Irgendwas auffälliges?
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Login von SSH verweigert??

Post by Joe User »

Ã?ndere mal die Protocol-Option (restart nicht vergessen):

Code: Select all

Protocol 2
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
andre丨
Posts: 125
Joined: 2003-09-28 13:34
Contact:
 

Re: Login von SSH verweigert??

Post by andre丨 »

keine Erfolge:

Code: Select all

Aug 23 11:33:06 web-xxl sshd[31585]: Connection from 84.171.121.4 port 15388
Aug 23 11:33:06 web-xxl sshd[31585]: debug1: Client protocol version 2.0; client software version PuTTY-Release-0.57
Aug 23 11:33:06 web-xxl sshd[31585]: debug1: no match: PuTTY-Release-0.57
Aug 23 11:33:06 web-xxl sshd[31585]: debug1: Enabling compatibility mode for protocol 2.0
Aug 23 11:33:06 web-xxl sshd[31585]: debug1: Local version string SSH-2.0-OpenSSH_3.6.1p1
Aug 23 11:33:10 web-xxl sshd[31585]: Failed none for andre from 84.171.121.4 port 15388 ssh2
Aug 23 11:33:12 web-xxl sshd[31585]: Failed password for andre from 84.171.121.4 port 15388 ssh2
andre丨
Posts: 125
Joined: 2003-09-28 13:34
Contact:
 

Re: Login von SSH verweigert??

Post by andre丨 »

könnte es irgendwie daran liegen das der SSH in ner falschen Datei nach dem Benutzer sucht, oder vllt. nicht auf die Passwortdatei zugreifen kann?
Post Reply