ubuntuusers.de

SSH Anmeldung geht nicht

Status: Gelöst | Ubuntu-Version: Nicht spezifiziert
Antworten |

Seppel

Anmeldungsdatum:
12. September 2006

Beiträge: 57

Hallo habe Ububtu 10.04 Server installiert.Und wenn ich mich über das Netzwerkanmelden will mit ssh bekomme ich diese Fehlermeldung.

setup@v1winxp1830:~$ ssh 192.168.101.250
The authenticity of host '192.168.101.250 (192.168.101.250)' can't be established.
RSA key fingerprint is 21:0e:54:f2:0c:d8:bc:a1:1c:72:e0:3b:e9:ae:f9:82.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.101.250' (RSA) to the list of known hosts.
setup@192.168.101.250's password:
Auth User/Pass with PS...fail...Please reconnect!.
Connection to 192.168.101.250 closed.

Kann mir dabei einer helfen. Ich komme nicht mehr weiter. Wen ich vor dem Rechner sitzte kann ich ganz normal Anmelden.

Gruß Seppel

daFlori

Anmeldungsdatum:
3. September 2008

Beiträge: 147

Gibt es denn einen Benutzer "setup" auf dem Server?

willst du nicht eher root-Zugang?

ssh root@192.168.101.250

Was sagt denn die /etc/ssh/sshd_config des Servers? Vielleicht ist ja die PasswordAuthentication ausgeschaltet

Seppel

(Themenstarter)

Anmeldungsdatum:
12. September 2006

Beiträge: 57

Also es ist die Standart Installation und setup ist der erste Benutzer also auf dem Server vorhanden. Ich habe noch einen Benutzer eingerichtet und bei dem bekomme ich die gleiche Fehlermeldung. Wenn vor dem Rechner sitzte kann ich mich mit beiden Benutzer anmelden, auf der Console.

Gruß Seppel

daFlori

Anmeldungsdatum:
3. September 2008

Beiträge: 147

Dann poste doch mal bitte den Inhalt von /etc/ssh/sshd_config

bka

Anmeldungsdatum:
18. März 2005

Beiträge: Zähle...

Wohnort: münchen

hi,

ein

ssh -v 192.168.101.250

wäre vielleicht auch ganz hilfreich. Übrigens mit der Anzahl der v's kann man den verbose level steuern (z.B. -vv, -vvv).

grüße bka

Seppel

(Themenstarter)

Anmeldungsdatum:
12. September 2006

Beiträge: 57

Hallo,

das passiert wenn ich ssh -v 192.168.101.250 eingebe. Mir hilft es nicht so richtig weiter.

setup@v1winxp1830:~$ ssh -v 192.168.101.250
OpenSSH_5.3p1 Debian-3ubuntu4, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.101.250 [192.168.101.250] port 22.
debug1: Connection established.
debug1: identity file /home/setup/.ssh/identity type -1
debug1: identity file /home/setup/.ssh/id_rsa type -1
debug1: identity file /home/setup/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version dropbear_0.52
debug1: no match: dropbear_0.52
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu4
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host '192.168.101.250' is known and matches the RSA host key.
debug1: Found key in /home/setup/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/setup/.ssh/identity
debug1: Trying private key: /home/setup/.ssh/id_rsa
debug1: Trying private key: /home/setup/.ssh/id_dsa
debug1: Next authentication method: password
setup@192.168.101.250's password: 
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = de_DE.UTF-8
Auth User/Pass with PS...fail...Please reconnect!.
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
Connection to 192.168.101.250 closed.
Transferred: sent 1672, received 1248 bytes, in 0.2 seconds
Bytes per second: sent 8434.1, received 6295.3
debug1: Exit status 0

Seppel

(Themenstarter)

Anmeldungsdatum:
12. September 2006

Beiträge: 57

Hier noch die sshd_config von dem Server.

# Package generated configuration file
# See the sshd_config(5) manpage for details

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

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

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

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

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

# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes

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

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no

#MaxStartups 10:30:60
#Banner /etc/issue.net

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes

Gruß Seppel

daFlori

Anmeldungsdatum:
3. September 2008

Beiträge: 147

Hm sieht auf den ersten Blick gut aus. Hast du es schon mit Ausschalten von X11Forwarding oder PAM versucht? Das wäre so eine Möglichkeit. Und laut der conf müsstest du dich als root anmelden können.

Ach so brauchts das Banner denn? sonst einfach mal

 #Banner /etc/issue.net

durch

#Banner none

ersetzen

Viel Erfolg

daFlori

Anmeldungsdatum:
3. September 2008

Beiträge: 147

Wobei das PS könnte auch für PrivilegeSeparation stehen, die sollte zwar eigentlich anbleiben, aber versuch doch mal die mit

#UsePrivilegeSeparation no

in der conf auszuschalten.

Seppel

(Themenstarter)

Anmeldungsdatum:
12. September 2006

Beiträge: 57

Hallo,

werde beides heute ausprobieren. Werde dann berichten.

Seppel

DrScott Team-Icon

Ehemalige
Avatar von DrScott

Anmeldungsdatum:
7. Juli 2005

Beiträge: 6018

Wohnort: Nürnberg

Ich habe das hier gefunden. Dort scheint es an einem Problem im Netzwerkaufbau zu sein: http://www.linuxquestions.org/questions/red-hat-31/peculiar-behavior-of-ssh-hangups-changing-host-key-817508/

daFlori

Anmeldungsdatum:
3. September 2008

Beiträge: 147

Hallo Seppel Mir ist grad aufgefallen, dass wir noch keinen Blick in das Log-File des Servers geworfen haben, grobe Fahrlässigkeit! 😉

Poste doch bitte die Ausgabe von

cat /var/log/auth.log | grep -i ssh 

auf dem Server

Gruß Flo

Seppel

(Themenstarter)

Anmeldungsdatum:
12. September 2006

Beiträge: 57

Hallo,

hier mal die loh files.

setup@v1atomd510nas:~$ cat /var/log/auth.log  | grep -i ssh
Jul 16 16:45:47 v1atomd510nas sudo:    setup : TTY=tty1 ; PWD=/home/setup ; USER=root ; COMMAND=/usr/bin/aptitude install openssh-server
Jul 16 16:46:16 v1atomd510nas useradd[1263]: new user: name=sshd, UID=104, GID=65534, home=/var/run/sshd, shell=/usr/sbin/nologin
Jul 16 16:46:17 v1atomd510nas usermod[1268]: change user 'sshd' password
Jul 16 16:46:17 v1atomd510nas chage[1273]: changed password expiry for sshd
Jul 16 16:46:17 v1atomd510nas sshd[1316]: Server listening on 0.0.0.0 port 22.
Jul 16 16:46:17 v1atomd510nas sshd[1316]: Server listening on :: port 22.
Jul 16 17:00:38 v1atomd510nas sshd[1316]: Received signal 15; terminating.
Jul 16 17:00:38 v1atomd510nas sshd[1457]: Server listening on 0.0.0.0 port 22.
Jul 16 17:00:38 v1atomd510nas sshd[1457]: Server listening on :: port 22.
Jul 16 17:00:38 v1atomd510nas sshd[1458]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Jul 16 17:00:38 v1atomd510nas sshd[1458]: error: Bind to port 22 on :: failed: Address already in use.
Jul 16 17:00:38 v1atomd510nas sshd[1458]: fatal: Cannot bind any address.
Jul 16 17:09:28 v1atomd510nas sshd[1623]: error writing /proc/self/oom_adj: Permission denied
Jul 16 17:09:28 v1atomd510nas sshd[1623]: error: Bind to port 22 on 0.0.0.0 failed: Permission denied.
Jul 16 17:09:28 v1atomd510nas sshd[1623]: error: Bind to port 22 on :: failed: Permission denied.
Jul 16 17:09:28 v1atomd510nas sshd[1623]: fatal: Cannot bind any address.
Jul 16 17:17:28 v1atomd510nas sshd[942]: Server listening on 0.0.0.0 port 22.
Jul 16 17:17:28 v1atomd510nas sshd[942]: Server listening on :: port 22.
Jul 16 18:15:55 v1atomd510nas sshd[1001]: Server listening on 0.0.0.0 port 22.
Jul 16 18:15:55 v1atomd510nas sshd[1001]: Server listening on :: port 22.
setup@v1atomd510nas:~$ 

Gruss Seppel

daFlori

Anmeldungsdatum:
3. September 2008

Beiträge: 147

Bist du sicher, dass auf dem Server nix anderes auf port 22 (2ter sshd oder so) läuft?

Wenn ja, probier mal in der sshd_conf

#ListenAddress ::
#ListenAddress 0.0.0.0

in

#ListenAddress ::
ListenAddress 0.0.0.0

zu ändern. Danach natürlich den sshd neustarten

Seppel

(Themenstarter)

Anmeldungsdatum:
12. September 2006

Beiträge: 57

Hallo,

ListenAddress 0.0.0.0 bring keine Änderung.

Wie kann ich über prüfen was auf dem port 22 alles läuft?

Ich weiß nicht habe aber das Gefühl das es erst mit dem Linux Kernel update gekommen ist, bin mir aber nicht ganz sicher.

Gruß Seppel

Antworten |