Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SFTP not configurable #110

Closed
jmara opened this issue Feb 3, 2016 · 3 comments
Closed

SFTP not configurable #110

jmara opened this issue Feb 3, 2016 · 3 comments

Comments

@jmara
Copy link
Contributor

jmara commented Feb 3, 2016

Hi there,

is it worth creating a PR to enable/adjust the SFTP settings?

Cheers,
Jan

@atomic111
Copy link
Member

Hi Jan,
thanks for bringing this up. Yes please create a PR to enable and configure the sftp for this. Some ideas about the configuration of sftp. I would configure sftp in such a way. What do you think?

Subsystem sftp internal-sftp -l VERBOSE
Match Group sftponly
        ForceCommand internal-sftp -l VERBOSE
        ChrootDirectory /share/%u
        AllowTcpForwarding no
        AllowAgentForwarding no
        PasswordAuthentication no
        PermitRootLogin no
        X11Forwarding no

So that we can configure the matching group, the ChrootDirectory, AllowAgentForwarding and so on.

@jmara
Copy link
Contributor Author

jmara commented Feb 3, 2016

Hi Patrick,

I've checked the puppet and ansible ssh-hardening and it looks like only Ansible takes care of the STFP stuff and adds capabilities to Enable and change ChrootDirectory for sftp.

I think the configuration should aswell include Group like you suggested, but I'm currently unsure if its a good security practice to allow the change of the other options like AllowAgentForwarding, PermitRootLogin.
As this cookbook focus on hardening the sshd I would suggest that I add the first three options: Enable, Group, ChrootDirectory and if necessary extend this functions in the next versions.

What do you think?

Cheers,
Jan

@atomic111
Copy link
Member

Hi Jan,
i total agree with you. May be i have expressed myself wrong. Recently i had a customer request to allow forwarding and so on for the other users and not allowing this for the sftponly group.

So just create your pull request. thanks

@jmara jmara mentioned this issue Feb 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants