ssh távolról –> Access denied /SuSe 9.0/

Kezdőlap Fórumok SuSE Linux SuSE kezdõ ssh távolról –> Access denied /SuSe 9.0/

7 bejegyzés megtekintése - 1-7 / 7
  • Szerző
    Bejegyzés
  • #1938135
    TsO
    Felhasználó

      hosts.allow file-ban]
      sshd: host.domain.hu vagy ip cim vagy .domain.hu

      host.deny]
      ALL:ALL

      arra figyelj oda hogy a fileok utolsó sorának egy üres sornak kell lennie.

      sshd_config:
      ListenAddress ipcim

      vagy ha minden cimen engedélyezni akarod (ppl több hálókari több subnet) akkor meg kommentezd ki

      Protocol 2
      csak ezzel enged 1-et eldobja

      PermitRootLogin no
      PermitEmptyPasswords no
      ezzel root-al nem lehet bejelentkezni

      #1938136
      soosd
      Felhasználó

        Sajnos meg igy sem megy…

        nem kellene valahol logolnia hogy mi a nyüge?

        #1938137
        TsO
        Felhasználó

          ezesetben az auth.log -ban nezz korul…

          #1938138
          gdavid
          Felhasználó

            veletlen nem root -kent akarsz bejelentkezni?

            mellesleg nem artana ha idemasolnad az /etc/ssh/sshd_config -ot (commentek nelkul)

            #1938139
            soosd
            Felhasználó

              rootként és userként is próbáltam…
              de… a mellette ua. subnetrol be tudok ra jelentkezni roottal és userrel egyaránt

              egyebkent az sshd.conf ban hol allitom hogy
              melyik user ssh-zhat
              illetve hogy honnan? 😯

              itt az sshd.conf! asszem egyebkent ez a default… kiveve a
              PermitRootLogin yes sort! 🙄

              Az auth.log nem létezik a /var/log – ban
              hogy kapcsolom be? a syslog.conf ba elég ennyi?

              auth.* -/var/log/auth.log ?
              😕

              # 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
              # 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
              #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 yes
              StrictModes yes

              RSAAuthentication no
              PubkeyAuthentication no
              #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 yes
              # 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

              # GSSAPI options
              #GSSAPIAuthentication no
              #GSSAPICleanupCreds yes

              # Set this to ‘yes’ to enable PAM authentication (via challenge-response)
              # and session processing. Depending on your PAM configuration, this may
              # bypass the setting of ‘PasswordAuthentication’
              UsePAM yes

              AllowTcpForwarding yes
              #GatewayPorts no
              X11Forwarding yes
              #X11DisplayOffset 10
              #X11UseLocalhost yes
              #PrintMotd yes
              #PrintLastLog yes
              #KeepAlive yes
              #UseLogin no
              UsePrivilegeSeparation no
              #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

              Köszönöm azz eddigi segítséget… 😳

              #1938140
              soosd
              Felhasználó

                Ujabb fejlemény

                belogolási kisérlet userrel
                eredmény a messages logban
                —]

                Apr 21 10:51:55 fw sshd[4837]: fatal: Read from socket failed: Connection reset
                by peer 😳 😥

                #1873616
                csaba
                Felhasználó

                  SuSe 9.0 nál a biztonsagi defaultok között valami máshogy áll mint az elözö verziókban ? 😯

                  …ugyanis a 9 felrakasa utan nem tudok tavolrol be-ssh-zni tavolrol… se a belso halorol…

                  nem a tüzfalam dobja el!
                  hanem Access denied a válasz… 🙄
                  … az azonos subnetben/külsõ lab/ lévö gépröl viszont siman megy a root login…

                  a host állományokkal mar probalkoztam… /de lehet hogy rosszul/

                7 bejegyzés megtekintése - 1-7 / 7
                • Be kell jelentkezni a hozzászóláshoz.