Kezdőlap › Fórumok › SuSE Linux › SuSE kezdõ › ssh távolról –> Access denied /SuSe 9.0/
- This topic has 6 hozzászólás, 4 résztvevő, and was last updated 21 years, 2 months telt el by
soosd.
-
SzerzőBejegyzés
-
2004-04-16-09:32 #1938135
hosts.allow file-ban]
sshd: host.domain.hu vagy ip cim vagy .domain.huhost.deny]
ALL:ALLarra figyelj oda hogy a fileok utolsó sorának egy üres sornak kell lennie.
sshd_config:
ListenAddress ipcimvagy 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 eldobjaPermitRootLogin no
PermitEmptyPasswords no
ezzel root-al nem lehet bejelentkezni2004-04-20-07:34 #1938136Sajnos meg igy sem megy…
nem kellene valahol logolnia hogy mi a nyüge?
2004-04-20-09:16 #1938137ezesetben az auth.log -ban nezz korul…
2004-04-20-11:02 #1938138veletlen nem root -kent akarsz bejelentkezni?
mellesleg nem artana ha idemasolnad az /etc/ssh/sshd_config -ot (commentek nelkul)
2004-04-21-08:46 #1938139rootként és userként is próbáltam…
de… a mellette ua. subnetrol be tudok ra jelentkezni roottal és userrel egyarántegyebkent 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 yesRSAAuthentication 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 yesAllowTcpForwarding 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-serverKöszönöm azz eddigi segítséget… 😳
2004-04-21-08:51 #1938140Ujabb 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 😳 😥2009-12-04-19:56 #1873616SuSe 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/
-
SzerzőBejegyzés
- Be kell jelentkezni a hozzászóláshoz.
legutóbbi hsz