informatique:logiciels:ssh
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatique:logiciels:ssh [2024/11/05 09:11] – [Connexion SSH via webproxy] bypass nc sans l'opt -x pteu | informatique:logiciels:ssh [2025/04/20 16:34] (current) – [SSH Authentication Refused: bad ownership] pteu | ||
---|---|---|---|
Line 685: | Line 685: | ||
session optional pam_exec.so seteuid / | session optional pam_exec.so seteuid / | ||
</ | </ | ||
+ | |||
+ | =====SSH Keepalive===== | ||
+ | |||
+ | Afin d' | ||
+ | |||
+ | Cela peut se configurer côté client, dans le fichier **~/ | ||
+ | <code bash ~/ | ||
+ | Host serveur-ssh | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Comme d'hab les paramètres peuvent aussi se définir au moment de la commande SSH avec l' | ||
+ | <code bash> | ||
+ | ssh -o ServerAliveInterval=300 -o ServerAliveCountMax=2 serveur-ssh | ||
+ | </ | ||
+ | |||
+ | Côté serveur, cela se définit dans le fichier **/ | ||
+ | <code bash / | ||
+ | ClientAliveInterval 300 | ||
+ | ClientAliveCountMax 2 | ||
+ | </ | ||
+ | |||
+ | =====SSH Authentication Refused: bad ownership===== | ||
+ | |||
+ | <code bash> | ||
+ | sshd [xxxxx] Authentication refused: bad ownership or modes for directory /home/user | ||
+ | </ | ||
+ | |||
+ | Ce message apparait dans les logs lorsque les dossiers ou fichiers SSH de l' | ||
+ | <code bash> | ||
+ | cd | ||
+ | chmod go-w ~ | ||
+ | chmod 700 ~/.ssh | ||
+ | chmod 600 ~/ | ||
+ | </ | ||
+ | |||
====== Liens ====== | ====== Liens ====== | ||
[[http:// | [[http:// |
informatique/logiciels/ssh.1730797862.txt.gz · Last modified: 2024/11/05 09:11 by pteu