tech:sftp-sans-acces-shell
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:sftp-sans-acces-shell [2025/06/02 15:12] – Jean-Baptiste | tech:sftp-sans-acces-shell [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Access SFTP sans shell | ||
| + | |||
| + | Voir : | ||
| + | * https:// | ||
| + | |||
| + | |||
| + | Voir également : | ||
| + | * rssh | ||
| + | * mysecureshell | ||
| + | |||
| + | Ou pour un acces exclusif en SFTP : | ||
| + | |||
| + | ~~~bash | ||
| + | #usermod -s / | ||
| + | echo "/ | ||
| + | ~~~ | ||
| + | |||
| + | Source : http:// | ||
| + | |||
| + | ----------- | ||
| + | |||
| + | Comme bash figure dans / | ||
| + | |||
| + | `/ | ||
| + | ~~~bash | ||
| + | #! /bin/bash | ||
| + | / | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | chmod +x / | ||
| + | ~~~ | ||
| + | |||
| + | Tout est log dans / | ||
| + | |||
| + | `/ | ||
| + | ~~~ | ||
| + | test: | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | ## Notes MySecureShell | ||
| + | |||
| + | `/ | ||
| + | ~~~xml | ||
| + | < | ||
| + | #Home / | ||
| + | # environment variable (ie: Home / | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | LimitConnection | ||
| + | LimitConnectionByUser | ||
| + | LimitConnectionByIP | ||
| + | |||
| + | </ | ||
| + | ~~~ | ||
| + | |||
| + | `/ | ||
| + | ~~~ | ||
| + | / | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | / | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | usermod -s / | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | # sftp-verif | ||
| + | |||
| + | Verifing file rights of / | ||
| + | Rights problems have been detected 0755 and should be 4755 | ||
| + | Do you want to repair / | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ### Debug | ||
| + | |||
| + | Voir : / | ||
| + | |||
| + | |||
| + | ## Autres | ||
| + | |||
| + | |||
| + | ~~~bash | ||
| + | useradd sftp_download -s / | ||
| + | passwd sftp_download | ||
| + | mkdir /download | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | # override default of no subsystems | ||
| + | # | ||
| + | Subsystem | ||
| + | |||
| + | Match group sftponly | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | |||
| + | PermitTunnel no | ||
| + | AllowAgentForwarding no | ||
| + | AllowTcpForwarding no | ||
| + | X11Forwarding no | ||
| + | # PasswordAuthentication no | ||
| + | ~~~ | ||
| + | |||
