root login
-
- Posts: 7
- Joined: 2006-01-22 13:43
root login
hallo zusammen,
ich habe in der sshd_config den root login unterbunden, mit winscp funktioniert das auch, mit putty kann ich mich aber immernoch als root anmelden :? wie kann ich das ändern?
und gibts ne möglichkeit unter winscp den user zu switchen, weil als root kann ich mich ja dort nicht mehr anmelden.
danke,
xlr
ich habe in der sshd_config den root login unterbunden, mit winscp funktioniert das auch, mit putty kann ich mich aber immernoch als root anmelden :? wie kann ich das ändern?
und gibts ne möglichkeit unter winscp den user zu switchen, weil als root kann ich mich ja dort nicht mehr anmelden.
danke,
xlr
-
- Userprojekt
- Posts: 7066
- Joined: 2002-10-09 14:30
- Location: Dorsten
Re: root login
Du solltest nach der Ã?nderung auch den sshd neu starten.
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
-
- Userprojekt
- Posts: 7066
- Joined: 2002-10-09 14:30
- Location: Dorsten
Re: root login
Dann hast du ja auch kein Problem, und kannst dich auch per Putty nicht mehr als root anmelden. ;)
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
-
- Posts: 7
- Joined: 2006-01-22 13:43
Re: root login
ich kann mich aber in putty als root anmelden.
-
- Userprojekt
- Posts: 7066
- Joined: 2002-10-09 14:30
- Location: Dorsten
Re: root login
Dann hast du wohl was falsch gemacht. Mehr zu sagen wäre aber reine Raterei, und dafür hab ich momentan keine Zeit (und auch keine Lust).
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
-
- Posts: 7
- Joined: 2006-01-22 13:43
Re: root login
kann das ein problem mit der PAM authentication sein?
-
- Project Manager
- Posts: 11183
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: root login
Ja.
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings 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.
Wings for Life ● Wings 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.
Re: root login
Ja aber an der PAM hast Du doch nichts verändert oder? Poste doch mal die Config von Deinem sshd? :)
-
- Posts: 7
- Joined: 2006-01-22 13:43
Re: root login
das ist alles was nicht auskommentiert ist:
PermitRootLogin no
PasswordAuthentication no
PermitEmptyPasswords no
UsePAM yes
X11Forwarding yes
Subsystem sftp /usr/lib/ssh/sftp-server
PermitRootLogin no
PasswordAuthentication no
PermitEmptyPasswords no
UsePAM yes
X11Forwarding yes
Subsystem sftp /usr/lib/ssh/sftp-server
-
- Project Manager
- Posts: 11183
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: root login
Code: Select all
UsePAM no
X11Forwarding no
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings 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.
Wings for Life ● Wings 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.
-
- Posts: 52
- Joined: 2003-06-19 19:36
- Location: Hannover
Re: root login
Falls das Problem noch besteht, mach mal ein
Ging mir schon zweimal, aus welchen Gründen auch immer, so, dass ich nur auf diese Weise Konfigurationsänderungen anwenden konnte.
schönen Gruß
Code: Select all
killall -9 sshd -HUP
schönen Gruß
-
- Posts: 2138
- Joined: 2002-12-15 00:10
- Location: Bergheim
Re: root login
Also was das darstellen soll ist mir ein Rätsel. Welches Signal möchtest du nun senden, KILL (-9) oder HUP?Philipp wrote:Falls das Problem noch besteht, mach mal einCode: Select all
killall -9 sshd -HUP
-
- Posts: 52
- Joined: 2003-06-19 19:36
- Location: Hannover
Re: root login
-9 für das sofortige Killenøxygen wrote:Also was das darstellen soll ist mir ein Rätsel. Welches Signal möchtest du nun senden, KILL (-9) oder HUP?Philipp wrote:Falls das Problem noch besteht, mach mal einCode: Select all
killall -9 sshd -HUP
-HUP fürs Neustarten
War mir nicht bekannt, dass man offenbar nur ein Signal absetzen kann, bzw., dass -9 neben -HUP obsolet ist.
-
- Posts: 2138
- Joined: 2002-12-15 00:10
- Location: Bergheim
Re: root login
1. sendet killall nur ein Signal (das letzte auf der Kommandozeile)
2. Wenn dem nicht wäre, würde zu erst -9 durchkommen, d.h. sshd sich beenden und dann würde HUP gesendet. Aber da gäbs schon kein Prozess mehr, der das Signal empfangen könnte. Das macht ja nun erst Recht keinen Sinn.
2. Wenn dem nicht wäre, würde zu erst -9 durchkommen, d.h. sshd sich beenden und dann würde HUP gesendet. Aber da gäbs schon kein Prozess mehr, der das Signal empfangen könnte. Das macht ja nun erst Recht keinen Sinn.
-
- Posts: 18
- Joined: 2005-11-02 11:03
- Location: Köln
Re: root login
Tja, ich habe ein ähnliches Problem, mein Server hat SUSE 9, und ich hab jetzt schon probiert, was ihr hier geschrieben habt, und auch ohne. Kann mich aber immer wieder als ROOT einloggen.
Bei meinem DEBIAN root klappt das, da kann ich mich jetzt nur noch als User einloggen.
Ist bei SUSE was anders was das betrifft ?
Mfg
Wolfseye
Bei meinem DEBIAN root klappt das, da kann ich mich jetzt nur noch als User einloggen.
Ist bei SUSE was anders was das betrifft ?
Mfg
Wolfseye
-
- Posts: 2223
- Joined: 2002-07-28 13:02
- Location: Berlin
Re: root login
poste doch mal die config - evtl. hast Du ja was übersehen ...
flo.
flo.
-
- Posts: 18
- Joined: 2005-11-02 11:03
- Location: Köln
Re: root login
Was das komische ist, und jetzt sagt bitte nicht sowas wegen n00b etc, bin halt kein LINUX Fachmann, aber normalerweise sind doch Zeilen die ein # davor haben, nicht benutzt in der Config, das ist doch richtig, oder ?
Weil bei dem SUSE sieht das so aus:
Sehr merkwürdig. Btw, der SUSE root ist übrigens von Server4you.
Wolfseye
Weil bei dem SUSE sieht das so aus:
Und da ist doch fast alles mit # ausgeklammert oder sehe ich das falsch ? Bei meinem DEBIAN sieht das so aus wie es sein soll. Wenn der SSHD dann bei dem SUSE dann aber doch irgendwo seine Config hernehmen muss, dann doch aus der o.g. Config, oder nicht ?#Port 22
#Protocol 2,1
#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_rsa_key
#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 no
#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
# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
# Set this to 'yes' to enable support for the deprecated 'gssapi' authentication
# mechanism to OpenSSH 3.8p1. The newer 'gssapi-with-mic' mechanism is included
# in this release. The use of 'gssapi' is deprecated due to the presence of
# potential man-in-the-middle attacks, which 'gssapi-with-mic' is not susceptible to.
#GSSAPIEnableMITMAttack no
# 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 mechanism.
# Depending on your PAM configuration, this may bypass the setting of
# PasswordAuthentication, PermitEmptyPasswords, and
# "PermitRootLogin without-password". If you just want the PAM account and
UsePAM yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression yes
#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/lib/ssh/sftp-server
Sehr merkwürdig. Btw, der SUSE root ist übrigens von Server4you.
Wolfseye
-
- Posts: 2223
- Joined: 2002-07-28 13:02
- Location: Berlin
Re: root login
Joe User wrote:Code: Select all
UsePAM no X11Forwarding no
-
- Posts: 18
- Joined: 2005-11-02 11:03
- Location: Köln
Re: root login
Was mich aber auch wundert und ich nicht ganz verstehe, wieso sind hier bei dem SUSE Server in der Config fast alle Sachen mit der # ausgekennzeichnet, was doch heisst das die Zeilen nicht benutzt werdenm oder ?
Und bei dem DEBIAN sind fast alle ohne #. Nimmt der bei dem SUSE die Sachen aus ner anderen Config oder ist das richtig so ?
Mfg
Wolfseye
Und bei dem DEBIAN sind fast alle ohne #. Nimmt der bei dem SUSE die Sachen aus ner anderen Config oder ist das richtig so ?
Mfg
Wolfseye
-
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: root login
Die Defaultwerte stehen in der Manpage sshd_config(5). Lies dir die auf jeden Fall durch und schau dir deine Konfiguration danach nochmal an. Falls du danach wirklich noch Fragen haben solltest kannst du ja nochmal schreiben.Wolfseye wrote:Nimmt der bei dem SUSE die Sachen aus ner anderen Config oder ist das richtig so ?
-
- Posts: 14
- Joined: 2004-09-06 18:57
Re: root login
Wolfseye wrote:Was das komische ist, und jetzt sagt bitte nicht sowas wegen n00b etc, bin halt kein LINUX Fachmann, aber normalerweise sind doch Zeilen die ein # davor haben, nicht benutzt in der Config, das ist doch richtig, oder ?
Wolfseye
Code: Select all
# $OpenBSD: sshd_config,v 1.72 2005/07/25 11:59:40 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/local/bin:/bin:/usr/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.
-
- Posts: 18
- Joined: 2005-11-02 11:03
- Location: Köln
Re: root login
Mittlerweile hats geklappt. Danke für Eure Hilfe.
:) Gruss
Wolfseye
:) Gruss
Wolfseye