Não consigo iniciar o servidor ssh

3

Fundo kernel: 3.0.0-14-genérico SO: Ubuntu 11.10 - área de trabalho

Problema: não consigo iniciar o daemon ssh Log do Sistema (Snippet):

[  451.862562] init: ssh main process (3042) terminated with status 255
[  451.862641] init: ssh main process ended, respawning
[  451.873345] init: ssh main process (3045) terminated with status 255
[  451.873405] init: ssh main process ended, respawning
[  451.883863] init: ssh main process (3048) terminated with status 255
[  451.883923] init: ssh main process ended, respawning
[  451.895982] init: ssh main process (3051) terminated with status 255
[  451.896090] init: ssh main process ended, respawning
[  451.907059] init: ssh main process (3054) terminated with status 255
[  451.907130] init: ssh main process ended, respawning
[  451.917883] init: ssh main process (3057) terminated with status 255
[  451.917951] init: ssh respawning too fast, stopped

Ocorre um problema durante a inicialização e também tenta fazer manualmente o comando (de comandos):

sudo service ssh start
sudo /etc/init.d/ssh start

Tentativas de correção:

  1. Dentro de sshd_config: ListenAddress alterado para ambos 0.0.0.0 e o endereço IP real da LAN
  2. Envio do HUP para o processo ssh (bem, não houve ssh processo de modo resultado final não fez nada).
  3. Servidor openssh reinstalado

Não fiz nada com o upstart.

Recomendações?

Referências abaixo

arquivo sshd_config:

# 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
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 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 no


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

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

X11Forwarding yes
X11DisplayOffset 10
PrintMotd yes
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

/ etc / network / interfaces:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

# Set up the bridge interface for OpenVPN
#auto br0
#iface br0 inet static
#address 10.0.1.199
#netmask 255.255.255.0
#gateway 10.0.1.1
#bridge_ports eth0

#iface eth0 inet manual
#up ifconfig $IFACE 0.0.0.0 up
#up ip link set $IFACE promisc on
#down ip link set $IFACE promisc off
#down ifconfig $IFACE down

Saída adicional:

ps auxw | grep ssh
kevdog    1916  0.0  0.0   3856   180 ?        Ss   10:12   0:00 /usr/bin/ssh-agent  /usr/bin/dbus-launch --exit-with-session /usr/bin/gnome-session --session=gnome-with-compiz
kevdog    3170  0.0  0.0   4448   796 pts/0    S+   11:32   0:00 grep --color=auto ssh
    
por Kevin 27.01.2012 / 17:30

1 resposta

5

O problema foi criar a seguinte linha

;UsePAM yes

Deveria ser como

UsePAM yes
    
por Vidyadhar 27.01.2012 / 19:17

Tags