[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problemas con server sftp



> Estoy teniendo problemas con un server web, desconozco que le pasa
> pero dejo de funcionar, siendo solo possible conectar por ssh. Las
> pruevas que hice son:
>
> conectar via root: al ssh conecta y al sftp. Si uso el fireftp no
> funciona.

   Si conecta por 'ssh' y 'sftp', ¿de quién es el problema?, ....,
redoble, ...., ¡fireftp!.

> resto de usuarios no pueden. Lo conecte con un openldap. Posteo el
> config de sshd_config a ver si alguien me puede ayudar a arreglar el
> misterio

   ¿Cómo lo conectaste con un ldap?, ¿por medio de múdulos pam?, ¿que
dicen los logs?.

> Port 22
> Protocol 2
> HostKey /etc/ssh/ssh_host_rsa_key
> HostKey /etc/ssh/ssh_host_dsa_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
> 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
>
> X11Forwarding no
> X11DisplayOffset 10
> PrintMotd no
> 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
> Subsystem sftp internal-sftp
>
> UsePAM yes

   Aquí usas los módulos pam para autenticar, ¿que dicen los logs?.

> Match group SFTP
>         ForceCommand internal-sftp
>         ChrootDirectory /var/www
>         AllowTcpForwarding no

   Aquí haces chroot de algunos usuarios,  ¿que dicen los logs?.

   Resumiendo, ¿que dicen los logs?. También exponer el problema de una
manera concisa puede ayudar, porque al final no sabemos si falla el
servidor web, el acceso por ssh, ambos o ninguno. Tampoco se entiende
bién que tipo de instalación tienes, ¿ssh con ldap?, ¿ssh con ladp y
chroot?, ...
---
   Saludos --- Angel




Reply to: