
reginaldosanto
(usa Red Hat)
Enviado em 19/05/2021 - 17:22h
Boa tarde Pessoal, tudo bem?
Apesar de estar trabalhando bastante com linux em alguns assuntos sou leigo e preciso da ajuda de vocês.
Preciso criar um servidor SFTP (Ubuntu 20.04) e o diretório do SFTP vai ficar em uma partição de dados, até aqui ok, porem depois de configurar não consigo autenticar nesse diretório, vou colocar a configuração abaixo e alguns logs.
Se alguém poder me ajudar com o problema eu agradeço.
#Nova Linha para o SFTP
Subsystem sftp internal-sftp -f AUTH -l INFO
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
#PasswordAuthentication yes
#Configuração do Server SFTP
Match group sftp
ChrootDirectory /mnt/SFTP/%u
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
PasswordAuthentication yes
Erro:
>
sshd[11583]: Server listening on 0.0.0.0 port 22.
sshd[11583]: Server listening on :: port 22.
systemd[1]: Started OpenBSD Secure Shell server.
sshd[11631]: Accepted password for sftpsm from 127.0.0.1 port 45146 ssh2
sshd[11637]: fatal: bad ownership or modes for chroot directory component "/mnt/SFT/>
Já adicionei o root como awner e nada muda.