Strona 1 z 2
Logowanie na roota server Dedykowany
: 07 lutego 2015, 07:08
autor: hulio
Witam,
po zrobieniu aptitude safe-upgrade nie mogę zalogować się na moje konto rota. Wpisuje poprawne hasło ale system twierdzi że jest błędne. Odpalałem system już w rescue mode zmieniłem hasło ale za każdym razem to samo. Mój system operacyjny to Debian7.
Z odp z góry dzięki
: 07 lutego 2015, 10:43
autor: dedito
Przez ssh?
: 07 lutego 2015, 11:36
autor: hulio
Tak przez ssh. Dodam ze serwer jest dedykow ny,czyli nie mam fizycznego dostepu do niego.
: 07 lutego 2015, 11:44
autor: dedito
Pokaż/sprawdź
sshd.config
w katalogu /etc/ssh
: 07 lutego 2015, 11:50
autor: hulio
Czy zwrócić na coś szczególnie uwagę szukając tam info ?
: 07 lutego 2015, 11:57
autor: dedito
Zapis:
PermitRootLogin no
Logowanie na roota nie bez powodu zostało wyłączone, kwestie bezpieczeństwa.
Zawsze możesz się przelogować z konta użytkownika.
: 07 lutego 2015, 12:12
autor: hulio
Mogę to sprawdzić dopiero później, a jakbym miał tam zablokowany miałbym wtedy możliwość wpisanie normalnie hasła itp ?
: 07 lutego 2015, 12:23
autor: dedito
Jeżeli nie ma innych blokad ... to tak.
Poczytaj pierwszy z brzegu artykuł o zabezpieczaniu dostępu przez ssh.
http://blog.kowalsio.com/2009/07/22/zab ... rwera-ssh/
: 09 lutego 2015, 07:45
autor: hulio
Kod: Zaznacz cały
# What ports, IPs and protocols we listen for
Port xxx
# 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
HostKey /etc/ssh/ssh_host_ecdsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes
# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 1024
# 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
: 09 lutego 2015, 13:29
autor: pawkrol
Używaj znaczników Kod: Zaznacz cały
. Zapoznaj się z [/color][u][url=http://www.debian.pl/threads/5676-Przeczytaj-zanim-cokolwiek-napiszesz%21][color=#0000cd]Przeczytaj zanim cokolwiek napiszesz![/color][/url]
[/u]