Repository navigation
Expand file tree
/
Copy pathlsshm.sh
More file actions
5454 lines (5021 loc) · 235 KB
/
Copy pathlsshm.sh
File metadata and controls
5454 lines (5021 loc) · 235 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env bash
# =============================================================================
# LSSHM - Local SSH Manager
# Version: 0.4.1
# Built: 2026-07-30T18:14:36Z
#
# This file is generated by scripts/build.sh from the modules in src/.
# Do not edit it by hand; edit the modules and rebuild.
#
# A simple local OpenSSH server, client, user access and key management tool
# for Linux (Windows support is planned through lsshm.ps1).
# =============================================================================
set -euo pipefail
# ===== src/common.sh ===================================================
# shellcheck shell=bash
# =============================================================================
# common.sh - shared helpers: version, paths, logging, prompts, temp files
# =============================================================================
# This module has no dependencies on other LSSHM modules and must be sourced
# (or concatenated) first.
# The build script replaces the token below with the content of the VERSION
# file. When running directly from src/ the token stays literal and the guard
# below falls back to a development version string.
LSSHM_VERSION="0.4.1"
case "$LSSHM_VERSION" in
*@@*) LSSHM_VERSION="0.4.1-dev" ;;
esac
LSSHM_NAME="LSSHM"
LSSHM_LONG_NAME="LSSHM - Local SSH Manager"
LSSHM_REPO_RAW="${LSSHM_REPO_RAW:-https://raw.githubusercontent.com/sannier3/lsshm/preview}"
# -----------------------------------------------------------------------------
# XDG base directories
# -----------------------------------------------------------------------------
lsshm_init_paths() {
LSSHM_HOME="${HOME:-/root}"
LSSHM_XDG_CONFIG="${XDG_CONFIG_HOME:-$LSSHM_HOME/.config}"
LSSHM_XDG_DATA="${XDG_DATA_HOME:-$LSSHM_HOME/.local/share}"
LSSHM_XDG_STATE="${XDG_STATE_HOME:-$LSSHM_HOME/.local/state}"
LSSHM_XDG_CACHE="${XDG_CACHE_HOME:-$LSSHM_HOME/.cache}"
LSSHM_BIN_DIR="$LSSHM_HOME/.local/bin"
LSSHM_CONFIG_DIR="$LSSHM_XDG_CONFIG/lsshm"
LSSHM_DATA_DIR="$LSSHM_XDG_DATA/lsshm"
LSSHM_STATE_DIR="$LSSHM_XDG_STATE/lsshm"
LSSHM_CACHE_DIR="$LSSHM_XDG_CACHE/lsshm"
LSSHM_CONFIG_FILE="$LSSHM_CONFIG_DIR/config"
LSSHM_BACKUP_DIR="$LSSHM_STATE_DIR/backups"
LSSHM_LOG_FILE="$LSSHM_STATE_DIR/lsshm.log"
LSSHM_INSTALL_TARGET="$LSSHM_DATA_DIR/lsshm.sh"
LSSHM_BIN_LINK="$LSSHM_BIN_DIR/lsshm"
}
# -----------------------------------------------------------------------------
# Colors (disabled when not writing to a terminal or NO_COLOR is set)
# -----------------------------------------------------------------------------
lsshm_init_colors() {
if [ -t 1 ] && [ -z "${NO_COLOR:-}" ] && [ "${LSSHM_NO_COLOR:-0}" != "1" ] \
&& [ "${LSSHM_UI_MODE:-0}" != "1" ]; then
LSSHM_C_RESET="$(printf '\033[0m')"
LSSHM_C_BOLD="$(printf '\033[1m')"
LSSHM_C_DIM="$(printf '\033[2m')"
LSSHM_C_RED="$(printf '\033[31m')"
LSSHM_C_GREEN="$(printf '\033[32m')"
LSSHM_C_YELLOW="$(printf '\033[33m')"
else
LSSHM_C_RESET=""; LSSHM_C_BOLD=""; LSSHM_C_DIM=""
LSSHM_C_RED=""; LSSHM_C_GREEN=""; LSSHM_C_YELLOW=""
fi
}
# Remove ANSI escape sequences (dialog and programbox do not render them).
lsshm_strip_ansi() {
sed $'s/\033\\[[0-9;]*[a-zA-Z]//g'
}
lsshm_strip_ansi_file() {
local f="$1" tmp
tmp="$(lsshm_mktemp)"
lsshm_strip_ansi <"$f" >"$tmp" && mv "$tmp" "$f"
}
# -----------------------------------------------------------------------------
# Logging
# -----------------------------------------------------------------------------
lsshm_log() {
# lsshm_log LEVEL MESSAGE...
local level="$1"; shift
local msg="$*"
if [ -n "${LSSHM_LOG_FILE:-}" ]; then
local dir; dir="$(dirname "$LSSHM_LOG_FILE")"
if [ -d "$dir" ] || mkdir -p "$dir" 2>/dev/null; then
printf '%s [%s] %s\n' "$(date '+%Y-%m-%dT%H:%M:%S%z')" "$level" "$msg" \
>>"$LSSHM_LOG_FILE" 2>/dev/null || true
fi
fi
}
# These helpers take a translatable format string (English msgid) followed by
# optional printf arguments, e.g. lsshm_ok 'Key added for %s.' "$user".
# The message is translated via lsshm_t and formatted with the given arguments.
lsshm_info() { local m; m="$(lsshm_tf "$@")"; printf '%s\n' "$m"; lsshm_log INFO "$m"; }
lsshm_note() { local m; m="$(lsshm_tf "$@")"; printf '%s%s%s\n' "${LSSHM_C_DIM:-}" "$m" "${LSSHM_C_RESET:-}" >&2; lsshm_log INFO "$m"; }
lsshm_ok() { local m; m="$(lsshm_tf "$@")"; printf '%s%s%s\n' "${LSSHM_C_GREEN:-}" "$m" "${LSSHM_C_RESET:-}"; lsshm_log OK "$m"; }
lsshm_warn() { local m; m="$(lsshm_tf "$@")"; printf '%s%s%s\n' "${LSSHM_C_YELLOW:-}" "$m" "${LSSHM_C_RESET:-}" >&2; lsshm_log WARN "$m"; }
lsshm_error() { local m; m="$(lsshm_tf "$@")"; printf '%s%s%s\n' "${LSSHM_C_RED:-}" "$m" "${LSSHM_C_RESET:-}" >&2; lsshm_log ERROR "$m"; }
lsshm_die() {
lsshm_error "$@"
exit 1
}
lsshm_header() {
printf '%s%s%s\n' "${LSSHM_C_BOLD:-}" "$LSSHM_LONG_NAME" "${LSSHM_C_RESET:-}"
printf '%sv%s%s\n\n' "${LSSHM_C_DIM:-}" "$LSSHM_VERSION" "${LSSHM_C_RESET:-}"
}
# -----------------------------------------------------------------------------
# Prompts
# -----------------------------------------------------------------------------
# True when stdin/stdout is a TTY, or when /dev/tty is available (IDE
# terminals, sudo, Git Bash on Windows often lack -t 0 but still have /dev/tty).
lsshm_have_tty() {
[ -e /dev/tty ] 2>/dev/null && [ -r /dev/tty ] && [ -w /dev/tty ]
}
lsshm_is_interactive() {
[ "${LSSHM_ASSUME_YES:-0}" != "1" ] || return 1
[ -t 0 ] && [ -t 1 ] && return 0
lsshm_have_tty && return 0
return 1
}
lsshm_require_interactive() {
if lsshm_is_interactive; then
return 0
fi
lsshm_error 'An interactive terminal is required for the menu.'
lsshm_info 'Without a menu: lsshm status | lsshm doctor | lsshm server status | lsshm key list'
lsshm_info 'To install: curl -fsSL .../lsshm.sh | bash -s -- install'
exit 1
}
lsshm_tty_restore() {
stty sane 2>/dev/null || true
}
lsshm_uses_dialog_ui() {
[ "${LSSHM_UI_MODE:-0}" = "1" ] && lsshm_have dialog
}
# Read one line from stdin or /dev/tty. Sets the named variable on success.
lsshm_read_line() {
local __var="$1" __prompt="$2" __line=""
if [ -t 0 ]; then
IFS= read -r -p "$__prompt" __line || return 1
elif lsshm_have_tty; then
IFS= read -r -p "$__prompt" __line </dev/tty || return 1
else
return 1
fi
printf -v "$__var" '%s' "$__line"
return 0
}
lsshm_prompt() {
# lsshm_prompt PROMPT [DEFAULT] -> echoes answer
local prompt="$1" default="${2:-}" answer="" msg=""
if ! lsshm_is_interactive; then
[ -n "$default" ] && { printf '%s' "$default"; return 0; }
return 1
fi
if lsshm_uses_dialog_ui; then
lsshm_tty_restore
answer="$(dialog --inputbox "$prompt" 10 70 "$default" 3>&1 1>&2 2>&3)" || answer="$default"
printf '%s' "${answer:-$default}"
return 0
fi
if [ -n "$default" ]; then
msg="${prompt} [${default}]: "
else
msg="${prompt}: "
fi
if lsshm_read_line answer "$msg"; then
printf '%s' "${answer:-$default}"
else
printf '%s' "$default"
fi
}
lsshm_confirm() {
# lsshm_confirm PROMPT [default_yes] -> return 0 for yes
local prompt="$1" default="${2:-no}" answer="" hint="[y/N]"
if [ "${LSSHM_ASSUME_YES:-0}" = "1" ]; then
return 0
fi
if ! lsshm_is_interactive; then
[ "$default" = "yes" ]
return
fi
if lsshm_uses_dialog_ui; then
lsshm_tty_restore
if dialog --backtitle "$LSSHM_LONG_NAME v$LSSHM_VERSION" \
--yesno "$prompt" 10 70 3>&1 1>&2 2>&3; then
return 0
fi
return 1
fi
[ "$default" = "yes" ] && hint="[Y/n]"
if ! lsshm_read_line answer "${prompt} ${hint} "; then
[ "$default" = "yes" ]
return
fi
answer="$(printf '%s' "$answer" | tr '[:upper:]' '[:lower:]')"
# Accept English, French and Spanish affirmatives/negatives.
case "$answer" in
y|yes|o|oui|s|si|sí) return 0 ;;
n|no|non) return 1 ;;
"") [ "$default" = "yes" ] ;;
*) return 1 ;;
esac
}
lsshm_pause() {
if lsshm_uses_dialog_ui; then
return 0
fi
lsshm_is_interactive || return 0
lsshm_read_line _ "$(lsshm_t 'Press Enter to continue... ')" || true
}
# Run a command from a menu without aborting the loop under set -e.
lsshm_menu_try() {
"$@" || true
return 0
}
# Interactive menu action: run (ignore failure/cancel), then pause in CLI mode.
lsshm_menu_action() {
"$@" || true
if ! lsshm_uses_dialog_ui; then
lsshm_pause
fi
return 0
}
# -----------------------------------------------------------------------------
# Temporary files (tracked and cleaned on exit)
# -----------------------------------------------------------------------------
LSSHM_TMPFILES=()
# Side-channel list so temps created inside $(...) still get cleaned on EXIT.
LSSHM_TMPTRACK=""
lsshm_mktemp() {
# Usage: lsshm_mktemp [persist]
# "persist" skips cleanup tracking (rollback helper scripts must survive EXIT).
local mode="${1:-}" tmp
tmp="$(mktemp "${TMPDIR:-/tmp}/lsshm.XXXXXX")" || lsshm_die 'Unable to create a temporary file.'
if [ "$mode" != "persist" ]; then
LSSHM_TMPFILES+=("$tmp")
if [ -n "${LSSHM_TMPTRACK:-}" ]; then
printf '%s\n' "$tmp" >>"$LSSHM_TMPTRACK" 2>/dev/null || true
fi
fi
printf '%s' "$tmp"
}
lsshm_cleanup() {
local f
for f in "${LSSHM_TMPFILES[@]:-}"; do
[ -n "$f" ] && rm -f "$f" 2>/dev/null || true
done
if [ -n "${LSSHM_TMPTRACK:-}" ] && [ -f "$LSSHM_TMPTRACK" ]; then
while IFS= read -r f || [ -n "$f" ]; do
[ -n "$f" ] && rm -f "$f" 2>/dev/null || true
done <"$LSSHM_TMPTRACK"
rm -f "$LSSHM_TMPTRACK" 2>/dev/null || true
fi
}
# -----------------------------------------------------------------------------
# Small utilities
# -----------------------------------------------------------------------------
lsshm_have() { command -v "$1" >/dev/null 2>&1; }
lsshm_yesno_label() {
case "$1" in
yes|true|on|1) lsshm_t 'yes' ;;
no|false|off|0) lsshm_t 'no' ;;
"") lsshm_t 'not set' ;;
*) printf '%s' "$1" ;;
esac
}
# Ensure the runtime directories exist.
lsshm_ensure_dirs() {
local d
for d in "$LSSHM_CONFIG_DIR" "$LSSHM_DATA_DIR" "$LSSHM_STATE_DIR" \
"$LSSHM_CACHE_DIR" "$LSSHM_BACKUP_DIR"; do
[ -d "$d" ] || mkdir -p "$d" 2>/dev/null || true
done
# Init temp tracking file once state dir is available (survives subshells).
if [ -z "${LSSHM_TMPTRACK:-}" ] && [ -d "$LSSHM_STATE_DIR" ]; then
LSSHM_TMPTRACK="$LSSHM_STATE_DIR/tmpfiles.$$"
: >"$LSSHM_TMPTRACK" 2>/dev/null || LSSHM_TMPTRACK=""
fi
}
# ===== src/i18n.sh =====================================================
# shellcheck shell=bash
# =============================================================================
# i18n.sh - internationalization (message catalogs + language selection)
# =============================================================================
# LSSHM source strings are written in English (the msgid). Translations are
# stored in per-language associative arrays keyed by the English msgid.
# A missing translation falls back to English, so the tool is always usable
# even with an incomplete catalog.
#
# Adding a language:
# 1. Add its code to LSSHM_LANGS and a native name in lsshm_lang_native_name.
# 2. Declare LSSHM_MSG_<code> and populate it below (mirror the fr catalog).
# 3. Handle it in lsshm_t and lsshm_detect_lang.
# This module must be sourced (or concatenated) right after common.sh.
# Supported language codes (space separated). English is the built-in default.
LSSHM_LANGS="en fr es"
LSSHM_LANG="${LSSHM_LANG:-en}"
# Global catalogs (must use -g: i18n.sh is sourced from functions in tests/build).
declare -gA LSSHM_MSG_fr
declare -gA LSSHM_MSG_es
# -----------------------------------------------------------------------------
# Lookup helpers
# -----------------------------------------------------------------------------
# lsshm_t MSGID -> prints the translated string (no newline). English falls
# back to the msgid itself, as does any missing translation.
lsshm_t() {
local msgid="${1-}" out="" nounset_was=0
# Bash + set -u treats missing associative-array keys as unbound variables.
# Disable nounset only for the catalog lookup.
case "${LSSHM_LANG-}" in
fr|es)
[[ $- == *u* ]] && nounset_was=1
set +u
if [ "${LSSHM_LANG}" = "fr" ]; then
out="${LSSHM_MSG_fr[$msgid]}"
else
out="${LSSHM_MSG_es[$msgid]}"
fi
[ "$nounset_was" = 1 ] && set -u
;;
esac
if [ -n "${out}" ]; then
printf '%s' "$out"
else
printf '%s' "$msgid"
fi
}
# lsshm_tf MSGID [ARGS...] -> printf the translated format string with ARGS.
lsshm_tf() {
local fmt; fmt="$(lsshm_t "$1")"; shift
# shellcheck disable=SC2059
printf "$fmt" "$@"
}
# lsshm_out MSGID [ARGS...] -> like lsshm_tf but appends a newline (stdout).
lsshm_out() {
local fmt; fmt="$(lsshm_t "$1")"; shift
# shellcheck disable=SC2059
printf "$fmt\n" "$@"
}
# -----------------------------------------------------------------------------
# Language codes and names
# -----------------------------------------------------------------------------
lsshm_lang_is_supported() {
case " $LSSHM_LANGS " in
*" $1 "*) return 0 ;;
*) return 1 ;;
esac
}
lsshm_lang_native_name() {
case "$1" in
en) printf 'English' ;;
fr) printf 'Français' ;;
es) printf 'Español' ;;
*) printf '%s' "$1" ;;
esac
}
# Detect the preferred language from the environment locale.
lsshm_detect_lang() {
local l="${LC_ALL:-${LC_MESSAGES:-${LANG:-}}}"
l="${l%%.*}" # drop encoding (fr_FR.UTF-8 -> fr_FR)
l="${l%%@*}" # drop modifier
l="${l%%_*}" # drop territory (fr_FR -> fr)
l="$(printf '%s' "$l" | tr '[:upper:]' '[:lower:]')"
case "$l" in
fr) printf 'fr' ;;
es) printf 'es' ;;
en) printf 'en' ;;
*) printf 'en' ;;
esac
}
# Resolve the active language: explicit override > config > locale detection.
lsshm_i18n_init() {
local want=""
if [ -n "${LSSHM_LANG_OVERRIDE:-}" ]; then
want="$LSSHM_LANG_OVERRIDE"
elif [ -n "${LSSHM_CFG_LANG:-}" ]; then
want="$LSSHM_CFG_LANG"
else
want="$(lsshm_detect_lang)"
fi
if lsshm_lang_is_supported "$want"; then
LSSHM_LANG="$want"
else
LSSHM_LANG="en"
fi
export LSSHM_LANG
}
# True when the user has never chosen a language (no value stored in config).
lsshm_i18n_configured() {
[ -n "${LSSHM_CFG_LANG:-}" ]
}
# Interactive language picker. Preselects the detected system language.
# Persists the choice to the configuration file when possible.
lsshm_i18n_choose() {
local detected def i=0 code choice
detected="$(lsshm_detect_lang)"
printf '\n' >&2
printf 'Language / Langue / Idioma:\n' >&2
local -a codes=()
for code in $LSSHM_LANGS; do
i=$((i + 1))
codes+=("$code")
printf ' %d. %s\n' "$i" "$(lsshm_lang_native_name "$code")" >&2
[ "$code" = "$detected" ] && def="$i"
done
def="${def:-1}"
# || true: a failed prompt under set -e must not abort LSSHM.
choice="$(lsshm_prompt "Choice / Choix / Elección" "$def" || true)"
[ -n "$choice" ] || choice="$def"
local picked=""
if [[ "$choice" =~ ^[0-9]+$ ]] && [ "$choice" -ge 1 ] && [ "$choice" -le "${#codes[@]}" ]; then
picked="${codes[$((choice - 1))]}"
elif lsshm_lang_is_supported "$choice"; then
picked="$choice"
else
picked="$detected"
fi
LSSHM_LANG="$picked"
export LSSHM_LANG
LSSHM_CFG_LANG="$picked"
lsshm_config_set language "$picked" 2>/dev/null || true
lsshm_out 'Language set to: %s' "$(lsshm_lang_native_name "$picked")"
}
# =============================================================================
# French catalog (fr)
# =============================================================================
declare -gA LSSHM_MSG_fr=(
# --- common.sh -----------------------------------------------------------
["Press Enter to continue... "]="Appuyez sur Entrée pour continuer... "
["An interactive terminal is required for the menu."]="Un terminal interactif est requis pour le menu."
["Without a menu: lsshm status | lsshm doctor | lsshm server status | lsshm key list"]="Sans menu : lsshm status | lsshm doctor | lsshm server status | lsshm key list"
["To install: curl -fsSL .../lsshm.sh | bash -s -- install"]="Pour installer : curl -fsSL .../lsshm.sh | bash -s -- install"
["Unable to create a temporary file."]="Impossible de créer un fichier temporaire."
["yes"]="oui"
["no"]="non"
["not set"]="non défini"
# --- i18n.sh -------------------------------------------------------------
["Language set to: %s"]="Langue définie sur : %s"
# --- platform.sh ---------------------------------------------------------
["Distribution : %s"]="Distribution : %s"
["Identifier : %s"]="Identifiant : %s"
["Package manager : %s"]="Gestionnaire paquet : %s"
["Service manager : %s"]="Gestionnaire service: %s"
["systemd : %s"]="systemd : %s"
["Virtualization : %s"]="Virtualisation : %s"
["sshd binary : %s"]="Binaire sshd : %s"
["SSH service : %s"]="Service SSH : %s"
["present"]="présent"
["absent"]="absent"
["not detected"]="non détecté"
# --- privileges.sh -------------------------------------------------------
["This operation requires root privileges, but sudo was not found."]="Cette opération nécessite les privilèges root, mais sudo est introuvable."
["sudo authentication required (non-interactive session)."]="Authentification sudo requise (session non interactive)."
["Administrator authentication (sudo) — once for this session."]="Authentification administrateur (sudo) — une seule fois pour cette session."
["sudo authentication failed."]="Échec de l'authentification sudo."
["Privileged operation not possible: run LSSHM as root or install sudo."]="Opération privilégiée impossible : exécutez LSSHM en root ou installez sudo."
["Empty username."]="Nom d'utilisateur vide."
["Unknown user: %s"]="Utilisateur inconnu : %s"
["Managed user: %s (%s/.ssh)"]="Utilisateur administré : %s (%s/.ssh)"
["Available local users:"]="Utilisateurs locaux disponibles :"
["No local user detected."]="Aucun utilisateur local détecté."
["User to manage (number or name)"]="Utilisateur à administrer (numéro ou nom)"
["Number out of range (1-%s)."]="Numéro hors plage (1-%s)."
["%s is running with sudo."]="%s est exécuté avec sudo."
["Calling user : %s"]="Utilisateur appelant : %s"
["Privileged user: root"]="Utilisateur privilégié: root"
["Whose personal SSH files should be managed?"]="Les fichiers SSH personnels de quel utilisateur faut-il gérer ?"
[" 1. %s (recommended)"]=" 1. %s (recommandé)"
[" 2. %s"]=" 2. %s"
[" 2. root"]=" 2. root"
[" 3. Choose another user"]=" 3. Choisir un autre utilisateur"
["%s is running as root."]="%s est exécuté en root."
["You can manage another user's SSH (keys, access, hosts)."]="Vous pouvez administrer le SSH d'un autre utilisateur (clés, accès, hosts)."
[" 1. root"]=" 1. root"
[" 2. Choose another user"]=" 2. Choisir un autre utilisateur"
# --- users.sh ------------------------------------------------------------
["Local users:"]="Utilisateurs locaux :"
# --- server.sh -----------------------------------------------------------
["Automatic enable/disable is not handled for SysV here."]="Activation/désactivation automatique non gérée pour SysV ici."
["Unknown service manager: cannot run '%s'."]="Gestionnaire de service inconnu : impossible d'exécuter '%s'."
["SSH service started."]="Service SSH démarré."
["SSH service stopped."]="Service SSH arrêté."
["SSH service restarted."]="Service SSH redémarré."
["Automatic startup enabled."]="Démarrage automatique activé."
["Automatic startup disabled."]="Démarrage automatique désactivé."
["Invalid configuration: reload cancelled."]="Configuration invalide : rechargement annulé."
["SSH service reloaded."]="Service SSH rechargé."
["OpenSSH Server is not installed (sshd binary not found)."]="OpenSSH Server n'est pas installé (binaire sshd introuvable)."
["SSH server status : %s"]="État du serveur SSH : %s"
["Auto-start : %s"]="Démarrage auto : %s"
["Port : %s"]="Port : %s"
["Address family : %s"]="Famille d'adresses : %s"
["Listen addresses : %s"]="Adresses d'écoute : %s"
["Root access : %s"]="Accès root : %s"
["Password auth. : %s"]="Auth. mot de passe : %s"
["Key auth. : %s"]="Auth. par clé : %s"
["active"]="actif"
["inactive"]="inactif"
["OpenSSH Server is already installed: %s"]="OpenSSH Server est déjà installé : %s"
["Installing OpenSSH Server..."]="Installation d'OpenSSH Server..."
["Unsupported package manager: %s"]="Gestionnaire de paquets non pris en charge : %s"
["OpenSSH Server installed."]="OpenSSH Server installé."
["The installation appears to have failed."]="L'installation semble avoir échoué."
["No SSH log source detected."]="Aucune source de journaux SSH détectée."
# --- server_config.sh ----------------------------------------------------
["sshd binary not found: validation not possible."]="Binaire sshd introuvable : validation impossible."
["sshd -t reported an error:"]="sshd -t a signalé une erreur :"
["The main config file does not include sshd_config.d/."]="Le fichier principal n'inclut pas sshd_config.d/."
["The file managed by LSSHM might be ignored."]="Le fichier géré par LSSHM pourrait être ignoré."
["'%s' is defined in %s before the Include."]="'%s' est défini dans %s avant l'Include."
["This value will take precedence over the file managed by LSSHM."]="Cette valeur prévaudra sur le fichier géré par LSSHM."
["Comment out this definition in the main file?"]="Commenter cette définition dans le fichier principal ?"
["New configuration invalid: rolling back."]="Nouvelle configuration invalide : annulation."
["Directive applied: %s %s"]="Directive appliquée : %s %s"
["Effective value (sshd -T): %s"]="Valeur effective (sshd -T) : %s"
["Expected: %s - another definition may still take precedence."]="Attendu : %s - une autre définition peut encore prévaloir."
["forbidden"]="interdit"
["key only"]="clé uniquement"
["key or password"]="clé ou mot de passe"
["forced commands only"]="commandes imposées"
["SSH root login"]="Connexion SSH de root"
[" 1. Forbid root entirely"]=" 1. Interdire totalement root"
[" 2. Allow root with a key only"]=" 2. Autoriser root uniquement avec une clé"
[" 3. Allow root with a key or a password"]=" 3. Autoriser root avec une clé ou un mot de passe"
[" 4. Allow root only for forced commands"]=" 4. Autoriser root uniquement pour des commandes imposées"
["Recommendation: allow root with a key only,"]="Recommandation : autoriser root uniquement avec une clé,"
["or use a normal user with sudo."]="ou utiliser un utilisateur normal possédant sudo."
["No change."]="Aucun changement."
["root access change"]="modification de l'accès root"
["Current password authentication: %s"]="Authentification par mot de passe actuelle : %s"
["Allow password authentication?"]="Autoriser l'authentification par mot de passe ?"
["Disabling passwords may lock you out without a valid key."]="Désactiver les mots de passe peut vous verrouiller sans clé valide."
["disabling passwords"]="désactivation des mots de passe"
["Allow public key authentication?"]="Autoriser l'authentification par clé publique ?"
["Disabling key authentication may lock you out."]="Désactiver l'authentification par clé peut vous verrouiller."
["disabling key authentication"]="désactivation de l'authentification par clé"
["New SSH port"]="Nouveau port SSH"
["Invalid port."]="Port invalide."
["Port out of range (1-65535)."]="Port hors plage (1-65535)."
["Check your firewall before changing the port."]="Vérifiez votre pare-feu avant de changer le port."
["port change"]="changement du port"
["address family change"]="changement de famille d'adresses"
["listen address change"]="changement des adresses d'écoute"
["SSH address family (AddressFamily)"]="Famille d'adresses SSH (AddressFamily)"
["Current: %s"]="Actuel : %s"
[" 1. any (IPv4 + IPv6, OpenSSH default)"]=" 1. any (IPv4 + IPv6, défaut OpenSSH)"
[" 2. inet (IPv4 only)"]=" 2. inet (IPv4 uniquement)"
[" 3. inet6 (IPv6 only)"]=" 3. inet6 (IPv6 uniquement)"
["SSH listen addresses (ListenAddress)"]="Adresses d'écoute SSH (ListenAddress)"
["Examples: 0.0.0.0 :: 192.168.1.10 0.0.0.0 ::"]="Exemples : 0.0.0.0 :: 192.168.1.10 0.0.0.0 ::"
["Empty input restores OpenSSH defaults (all interfaces)."]="Une saisie vide restaure les défauts OpenSSH (toutes les interfaces)."
["Listen addresses (space-separated)"]="Adresses d'écoute (séparées par des espaces)"
["Directive removed from managed file: %s"]="Directive retirée du fichier géré : %s"
["Directive applied: %s (%s)"]="Directive appliquée : %s (%s)"
["Current AllowUsers: %s"]="AllowUsers actuel : %s"
["Allowed users (space-separated, empty = remove)"]="Utilisateurs autorisés (séparés par des espaces, vide = supprimer)"
["Removing AllowUsers is not handled automatically (edit the managed file)."]="Suppression de AllowUsers non gérée automatiquement (éditez le fichier géré)."
["AllowUsers change"]="modification de AllowUsers"
["Current AllowGroups: %s"]="AllowGroups actuel : %s"
["Allowed groups (space-separated)"]="Groupes autorisés (séparés par des espaces)"
["AllowGroups change"]="modification de AllowGroups"
["sshd -T unavailable. Detected configuration files:"]="sshd -T indisponible. Fichiers de configuration détectés :"
# --- rollback.sh ---------------------------------------------------------
["Sensitive change not possible without an interactive terminal: %s"]="Changement sensible impossible sans terminal interactif : %s"
["A TTY is required to confirm the new SSH session works."]="Un TTY est requis pour confirmer que la nouvelle session SSH fonctionne."
["Sensitive change: %s"]="Changement sensible : %s"
["Continue with an automatic safety rollback?"]="Continuer avec une restauration automatique de sécurité ?"
["Cancelled."]="Annulé."
["Change application cancelled."]="Application annulée."
["The SSH port is listening."]="Le port SSH écoute."
["Unable to confirm the SSH port is listening."]="Impossible de confirmer que le port SSH écoute."
["The new configuration is active."]="La nouvelle configuration est active."
["An automatic rollback will occur in %s seconds."]="Une restauration automatique aura lieu dans %s secondes."
["Open a second SSH connection before confirming."]="Ouvrez une seconde connexion SSH avant de confirmer."
[" 1. The new connection works"]=" 1. La nouvelle connexion fonctionne"
[" 2. Restore immediately"]=" 2. Restaurer immédiatement"
["Automatic rollback cancelled. Change kept."]="Restauration automatique annulée. Changement conservé."
["Restoring immediately..."]="Restauration immédiate..."
["Previous configuration restored."]="Configuration précédente restaurée."
# --- backup.sh -----------------------------------------------------------
["No server configuration to back up."]="Aucune configuration serveur à sauvegarder."
["Backup created: %s"]="Sauvegarde créée : %s"
["Server configuration backup failed."]="Échec de la sauvegarde de la configuration serveur."
["No backups recorded."]="Aucune sauvegarde enregistrée."
["Backups in %s:"]="Sauvegardes dans %s :"
["Backup archive not found: %s"]="Archive introuvable : %s"
["Restoring server configuration from: %s"]="Restauration de la configuration serveur depuis : %s"
["Confirm the restore?"]="Confirmer la restauration ?"
["Configuration restored."]="Configuration restaurée."
["Restore failed."]="Échec de la restauration."
["Backup and restore"]="Sauvegarde et restauration"
[" 1. Back up the SSH server configuration"]=" 1. Sauvegarder la configuration du serveur SSH"
[" 2. Back up authorized keys (authorized_keys)"]=" 2. Sauvegarder les clés autorisées (authorized_keys)"
["Back up authorized keys (authorized_keys)"]="Sauvegarder les clés autorisées (authorized_keys)"
[" 3. List backups"]=" 3. Lister les sauvegardes"
[" 4. Restore a server configuration"]=" 4. Restaurer une configuration serveur"
[" 5. Back"]=" 5. Retour"
["Archive name to restore"]="Nom de l'archive à restaurer"
# --- authorized_keys.sh --------------------------------------------------
["User : %s"]="Utilisateur : %s"
["File : %s"]="Fichier : %s"
["No authorized key."]="Aucune clé autorisée."
["DISABLED"]="DÉSACTIVÉE"
["no comment"]="sans commentaire"
[" Type : %s (%s bits)"]=" Type : %s (%s bits)"
[" Fingerprint : %s"]=" Empreinte : %s"
[" Restriction : %s"]=" Restriction : %s"
[" Command : %s"]=" Commande : %s"
[" Forwarding : forbidden"]=" Transfert : interdit"
["unknown"]="inconnue"
["Paste the public key (one line), then Enter:"]="Collez la clé publique (une ligne), puis Entrée :"
["No key provided."]="Aucune clé fournie."
["The provided key is not a valid public key."]="La clé fournie n'est pas une clé publique valide."
["This key already exists (disabled, fingerprint %s)."]="Cette clé existe déjà (désactivée, empreinte %s)."
["Re-enable it via the Disable / re-enable a key entry."]="Réactivez-la via « Désactiver / réactiver une clé »."
["This key is already authorized (fingerprint %s)."]="Cette clé est déjà autorisée (empreinte %s)."
["Key added for %s."]="Clé ajoutée pour %s."
["No key to remove."]="Aucune clé à supprimer."
["SHA256 fingerprint or number to remove"]="Empreinte SHA256 ou numéro à supprimer"
["No matching key found."]="Aucune clé correspondante trouvée."
["Key removed for %s."]="Clé supprimée pour %s."
["%s does not exist."]="%s n'existe pas."
["Permissions repaired for %s:"]="Permissions réparées pour %s :"
[" .ssh 700, authorized_keys 600, private keys 600, public keys 644"]=" .ssh 700, authorized_keys 600, clés privées 600, clés publiques 644"
["No key to disable."]="Aucune clé à désactiver."
["SHA256 fingerprint or number to disable/re-enable"]="Empreinte SHA256 ou numéro à désactiver/réactiver"
["Key state updated for %s."]="État de la clé mis à jour pour %s."
["No key."]="Aucune clé."
["Duplicate detected: %s"]="Doublon détecté : %s"
["Duplicate analysis complete."]="Analyse des doublons terminée."
# --- local_keys.sh -------------------------------------------------------
["Directory: %s"]="Répertoire : %s"
["No key pair detected."]="Aucune paire de clés détectée."
[" Public key : %s"]=" Clé publique : %s"
[" Private key : %s"]=" Clé privée : %s"
["present"]="présente"
["absent"]="absente"
["Choose a key"]="Choisir une clé"
["%s (number)"]="%s (numéro)"
["Private key not found: %s"]="Clé privée introuvable : %s"
["Key not found: %s"]="Clé introuvable : %s"
["Invalid choice: %s"]="Choix invalide : %s"
["Private key missing for %s."]="Clé privée absente pour %s."
["Key type (ed25519/rsa)"]="Type de clé (ed25519/rsa)"
["Unknown type, using ed25519."]="Type inconnu, utilisation de ed25519."
["File name"]="Nom du fichier"
["The file %s already exists."]="Le fichier %s existe déjà."
["Overwrite?"]="Écraser ?"
["Comment"]="Commentaire"
["A passphrase is strongly recommended."]="Une phrase secrète est fortement recommandée."
["Key generated: %s (user %s)"]="Clé générée : %s (utilisateur %s)"
["Public key:"]="Clé publique :"
["Generation failed."]="Échec de la génération."
["Key to inspect"]="Clé à inspecter"
["File not found: %s"]="Fichier introuvable : %s"
["Fingerprint:"]="Empreinte :"
["Random art:"]="Art aléatoire :"
["Key to export"]="Clé à exporter"
["Public key not found: %s"]="Clé publique introuvable : %s"
["Public key (%s):"]="Clé publique (%s) :"
["Key whose passphrase to change"]="Clé dont la phrase secrète doit être modifiée"
["Changing the passphrase of %s"]="Modification de la phrase secrète de %s"
["Key to delete"]="Clé à supprimer"
["No key file found for: %s"]="Aucun fichier de clé trouvé pour : %s"
["Deleting the key pair:"]="Suppression de la paire de clés :"
["A backup will be created. Confirm deletion?"]="Une sauvegarde sera créée. Confirmer la suppression ?"
["Key pair deleted (backup kept)."]="Paire de clés supprimée (sauvegarde conservée)."
# --- ssh_agent.sh --------------------------------------------------------
["No ssh-agent detected (SSH_AUTH_SOCK not set)."]="Aucun ssh-agent détecté (SSH_AUTH_SOCK non défini)."
['Start an agent, e.g.: eval $(ssh-agent -s)']='Démarrez un agent, ex. : eval $(ssh-agent -s)'
["Keys loaded in ssh-agent:"]="Clés chargées dans ssh-agent :"
["Key to add to ssh-agent"]="Clé à ajouter à ssh-agent"
["Key added to ssh-agent."]="Clé ajoutée à ssh-agent."
["Remove all keys from the agent?"]="Retirer toutes les clés de l'agent ?"
["All keys removed."]="Toutes les clés retirées."
["Key to remove from ssh-agent"]="Clé à retirer de ssh-agent"
["Key removed from ssh-agent."]="Clé retirée de ssh-agent."
# --- hosts.sh ------------------------------------------------------------
["No ~/.ssh/config file."]="Aucun fichier ~/.ssh/config."
["Registered remote hosts (%s):"]="Machines distantes enregistrées (%s) :"
[" (none)"]=" (aucune)"
["Host alias name"]="Nom (alias) de la machine"
["Name required."]="Nom requis."
["A host named '%s' already exists."]="Un hôte nommé '%s' existe déjà."
["Address (HostName)"]="Adresse (HostName)"
["User"]="Utilisateur"
["Port"]="Port"
["Key file (IdentityFile)"]="Fichier de clé (IdentityFile)"
["ProxyJump (empty = none)"]="ProxyJump (vide = aucun)"
["Host '%s' added to %s"]="Hôte '%s' ajouté à %s"
["Host name to delete"]="Nom de l'hôte à supprimer"
["No config file."]="Aucun fichier config."
["Host not found: %s"]="Hôte introuvable : %s"
["Host '%s' deleted."]="Hôte '%s' supprimé."
["Host name to edit"]="Nom de l'hôte à modifier"
["Current configuration of '%s':"]="Configuration actuelle de '%s' :"
["Editing replaces the whole block."]="L'édition remplace le bloc complet."
["Continue?"]="Continuer ?"
["Unable to back up %s."]="Impossible de sauvegarder %s."
["Edit cancelled: host '%s' has been restored."]="Édition annulée : l'hôte '%s' a été restauré."
["Host name"]="Nom de l'hôte"
["ssh not found."]="ssh introuvable."
["Effective configuration (ssh -G %s):"]="Configuration effective (ssh -G %s) :"
["Host name to test"]="Nom de l'hôte à tester"
["Resolving %s..."]="Test de résolution de %s..."
["DNS resolution succeeded."]="Résolution DNS réussie."
["DNS resolution uncertain."]="Résolution DNS incertaine."
["Testing port %s..."]="Test du port %s..."
["Port %s open."]="Port %s ouvert."
["Port %s unreachable."]="Port %s injoignable."
["SSH authentication test (BatchMode)..."]="Test d'authentification SSH (BatchMode)..."
["Authentication succeeded."]="Authentification réussie."
["Automatic authentication failed (missing key or password required)."]="Authentification non automatique (clé manquante ou mot de passe requis)."
["Remote host identification has changed (known_hosts conflict)."]="L'identification de l'hôte distant a changé (conflit known_hosts)."
["This can happen after a reinstall, or indicate a MITM risk."]="Cela peut arriver après une réinstallation, ou indiquer un risque MITM."
["Remove the old host key for %s from known_hosts?"]="Supprimer l'ancienne clé d'hôte de %s dans known_hosts ?"
["Fetch and accept the new host key now?"]="Récupérer et accepter la nouvelle clé d'hôte maintenant ?"
["New host key(s) for %s added to known_hosts."]="Nouvelle(s) clé(s) d'hôte pour %s ajoutée(s) à known_hosts."
["Unable to fetch host keys from %s."]="Impossible de récupérer les clés d'hôte de %s."
["Re-run the host test after updating known_hosts."]="Relancez le test de l'hôte après la mise à jour de known_hosts."
["Connecting to %s..."]="Connexion à %s..."
["ssh-copy-id not found."]="ssh-copy-id introuvable."
["Copying %s to %s..."]="Copie de %s vers %s..."
["Empty public key body."]="Corps de clé publique vide."
["Invalid key body (unexpected characters)."]="Corps de clé invalide (caractères inattendus)."
["Removing the key on %s (requires authorized access)."]="Retrait de la clé sur %s (nécessite un accès autorisé)."
["Key removed on %s."]="Clé retirée sur %s."
["Removal failed."]="Échec du retrait."
# --- known_hosts.sh ------------------------------------------------------
["No known_hosts file."]="Aucun fichier known_hosts."
["Known fingerprints (%s):"]="Empreintes connues (%s) :"
["Host fingerprint for %s:"]="Empreinte hôte pour %s :"
["No entry for %s."]="Aucune entrée pour %s."
["Server name or address"]="Nom ou adresse du serveur"
["Host to remove from known_hosts"]="Hôte à supprimer de known_hosts"
["Fingerprint of %s removed."]="Empreinte de %s supprimée."
["Removal failed for %s."]="Échec de la suppression pour %s."
["Host to scan"]="Hôte à scanner"
["ssh-keyscan not found."]="ssh-keyscan introuvable."
["Fingerprint announced by %s:"]="Empreinte annoncée par %s :"
# --- logs.sh -------------------------------------------------------------
["Active SSH sessions:"]="Sessions SSH actives :"
["'who' unavailable."]="'who' indisponible."
["Recent logins:"]="Connexions récentes :"
["'last' unavailable."]="'last' indisponible."
["Recent failed login attempts:"]="Tentatives de connexion échouées récentes :"
[" (none or not accessible)"]=" (aucune ou non accessible)"
["No source of failed attempts available."]="Aucune source de tentatives échouées disponible."
["SSH service logs:"]="Journaux du service SSH :"
["Connections and logs"]="Connexions et journaux"
[" 1. Active sessions"]=" 1. Sessions actives"
[" 2. Recent logins"]=" 2. Connexions récentes"
[" 3. Failed attempts"]=" 3. Tentatives échouées"
[" 4. SSH service logs"]=" 4. Journaux du service SSH"
["Recent logins"]="Connexions récentes"
["SSH service logs"]="Journaux du service SSH"
# --- audit.sh ------------------------------------------------------------
["WARN"]="AVERT"
["FAIL"]="ÉCHEC"
["Local SSH security audit"]="Audit de sécurité SSH local"
["SSH server"]="Serveur SSH"
["OpenSSH Server installed."]="OpenSSH Server installé."
["OpenSSH Server not installed."]="OpenSSH Server non installé."
["PermitRootLogin = no (root forbidden)."]="PermitRootLogin = no (root interdit)."
["PermitRootLogin = key only."]="PermitRootLogin = clé uniquement."
["PermitRootLogin = yes (root with password allowed)."]="PermitRootLogin = yes (root avec mot de passe autorisé)."
["PermitRootLogin = %s."]="PermitRootLogin = %s."
["Password authentication disabled."]="Authentification par mot de passe désactivée."
["Password authentication enabled."]="Authentification par mot de passe activée."
["PasswordAuthentication = %s."]="PasswordAuthentication = %s."
["MaxAuthTries = %s."]="MaxAuthTries = %s."
["MaxAuthTries = %s (recommended <= 4)."]="MaxAuthTries = %s (recommandé <= 4)."
["default"]="défaut"
["sshd -t: configuration valid."]="sshd -t : configuration valide."
["sshd -t: configuration invalid."]="sshd -t : configuration invalide."
["Local permissions (%s)"]="Permissions locales (%s)"
["The .ssh directory has 700 permissions."]="Le dossier .ssh a les permissions 700."
["The .ssh directory has %s permissions (expected 700)."]="Le dossier .ssh a les permissions %s (attendu 700)."
["authorized_keys 600."]="authorized_keys 600."
["authorized_keys %s (expected 600)."]="authorized_keys %s (attendu 600)."
["%s 600."]="%s 600."
["%s %s (private key must be 600)."]="%s %s (clé privée doit être 600)."
["No .ssh directory for %s."]="Aucun répertoire .ssh pour %s."
["Listening port"]="Port d'écoute"
["The configured SSH port is listening."]="Le port SSH configuré écoute."
["Unable to confirm the SSH port is listening."]="Impossible de confirmer l'écoute du port SSH."
["Summary"]="Résumé"
["%d OK, %d warnings, %d failures"]="%d OK, %d avertissements, %d échecs"
["LSSHM diagnostics (doctor)"]="Diagnostic LSSHM (doctor)"
["SSH tools:"]="Outils SSH :"
["LSSHM paths:"]="Chemins LSSHM :"
["PATH:"]="PATH :"
["%s is in PATH"]="%s est dans le PATH"
["%s is not in PATH"]="%s absent du PATH"
# --- updater.sh ----------------------------------------------------------
["Neither curl nor wget available for download."]="Ni curl ni wget disponibles pour le téléchargement."
["Installed version: %s"]="Version installée : %s"
["Available version: %s"]="Version disponible : %s"
["An update is available."]="Une mise à jour est disponible."
["Install now?"]="Installer maintenant ?"
["LSSHM does not seem to be installed in %s."]="LSSHM ne semble pas installé dans %s."
["Use: curl -fsSL %s/lsshm.sh | bash -s -- install"]="Utilisez : curl -fsSL %s/lsshm.sh | bash -s -- install"
["Remote version : %s"]="Version distante : %s"
["Downloading the new version..."]="Téléchargement de la nouvelle version..."
["Download failed."]="Échec du téléchargement."
["The downloaded script has syntax errors. Aborting."]="Le script téléchargé contient des erreurs de syntaxe. Abandon."
["SHA-256 verification failed. Aborting."]="Vérification SHA-256 échouée. Abandon."
["The downloaded file does not look like LSSHM. Aborting."]="Le fichier téléchargé ne ressemble pas à LSSHM. Abandon."
["Update installed. Previous version kept: %s"]="Mise à jour installée. Version précédente conservée : %s"
["Use 'lsshm update rollback' to revert."]="Utilisez 'lsshm update rollback' pour revenir en arrière."
["File replacement failed."]="Échec du remplacement du fichier."
["File to verify not found."]="Fichier à vérifier introuvable."
["SHA256SUMS unavailable: cannot verify (aborting)."]="SHA256SUMS indisponible : vérification impossible (abandon)."
["lsshm.sh checksum missing from SHA256SUMS (aborting)."]="Empreinte lsshm.sh absente de SHA256SUMS (abandon)."
["No SHA-256 tool (sha256sum/shasum): cannot verify (aborting)."]="Aucun outil SHA-256 (sha256sum/shasum) : vérification impossible (abandon)."
["Incorrect SHA-256 checksum."]="Empreinte SHA-256 incorrecte."
[" expected: %s"]=" attendu : %s"
[" actual: %s"]=" obtenu : %s"
["SHA-256 checksum verified."]="Empreinte SHA-256 vérifiée."
["No previous version available (%s)."]="Aucune version précédente disponible (%s)."
["Restore the previous version of LSSHM?"]="Restaurer la version précédente de LSSHM ?"
["Previous version restored."]="Version précédente restaurée."
# --- cli.sh / dialog.sh (menus + status) ---------------------------------
["Managed user: %s"]="Utilisateur administré : %s"
["SSH server status: %s"]="État du serveur SSH : %s"
["Port: %s"]="Port : %s"
["Root access: %s"]="Accès root : %s"
["Password authentication: %s"]="Authentification par mot de passe : %s"
["Authorized keys for root: %s"]="Clés autorisées pour root : %s"
["Private keys of %s: %s"]="Clés privées de %s : %s"
["Registered remote hosts: %s"]="Machines distantes enregistrées : %s"
["Invalid choice."]="Choix invalide."
["Choice"]="Choix"
["Main menu"]="Menu principal"
["1. Manage the local SSH server"]="1. Gérer le serveur SSH local"
["2. Manage access to this machine"]="2. Gérer les accès à cette machine"
["3. Manage my SSH keys"]="3. Gérer mes clés SSH"
["4. Manage remote hosts"]="4. Gérer les machines distantes"
["5. View connections and logs"]="5. Consulter les connexions et journaux"
["6. Run a security audit"]="6. Effectuer un audit de sécurité"
["7. Back up or restore"]="7. Sauvegarder ou restaurer"
["8. LSSHM settings"]="8. Paramètres de LSSHM"
["9. Quit"]="9. Quitter"
["Manage the local SSH server"]="Gérer le serveur SSH local"
["Manage access to this machine"]="Gérer les accès à cette machine"
["Manage my SSH keys"]="Gérer mes clés SSH"
["Manage remote hosts"]="Gérer les machines distantes"
["View connections and logs"]="Consulter les connexions et journaux"
["Run a security audit"]="Effectuer un audit de sécurité"
["Back up or restore"]="Sauvegarder ou restaurer"
["LSSHM settings"]="Paramètres de LSSHM"
["Quit"]="Quitter"
["Back"]="Retour"
["Local SSH server"]="Serveur SSH local"
["Install OpenSSH Server"]="Installer OpenSSH Server"
["Start the service"]="Démarrer le service"
["Stop the service"]="Arrêter le service"
["Restart the service"]="Redémarrer le service"
["Reload the service"]="Recharger le service"
["Enable at boot"]="Activer au démarrage"
["Disable at boot"]="Désactiver au démarrage"
["Change the port"]="Changer le port"
["Address family (AddressFamily)"]="Famille d'adresses (AddressFamily)"
["Listen addresses (ListenAddress)"]="Adresses d'écoute (ListenAddress)"
["Manage root access"]="Gérer l'accès root"
["Password authentication"]="Authentification par mot de passe"
["Key authentication"]="Authentification par clé"
["Allowed users (AllowUsers)"]="Utilisateurs autorisés (AllowUsers)"
["Allowed groups (AllowGroups)"]="Groupes autorisés (AllowGroups)"
["Test the configuration (sshd -t)"]="Tester la configuration (sshd -t)"
["Show the effective configuration (sshd -T)"]="Afficher la configuration effective (sshd -T)"
["View the logs"]="Voir les journaux"
["OpenSSH Server installation"]="Installation OpenSSH Server"
["Starting SSH"]="Démarrage SSH"
["Stopping SSH"]="Arrêt SSH"
["Restarting SSH"]="Redémarrage SSH"
["Reloading SSH"]="Rechargement SSH"
["Enabling at boot"]="Activation au démarrage"
["Disabling at boot"]="Désactivation au démarrage"
["sshd -t test"]="Test sshd -t"
["Effective configuration"]="Configuration effective"
["SSH logs"]="Journaux SSH"
["Configuration valid."]="Configuration valide."
["Access to this machine (keys allowed to connect HERE)"]="Accès à cette machine (clés autorisées pour se connecter ICI)"
["Target user: %s"]="Utilisateur ciblé : %s"
["List users"]="Lister les utilisateurs"
["List authorized keys"]="Lister les clés autorisées"
["Add a key (paste or import a .pub)"]="Ajouter une clé (coller ou importer un .pub)"
["Remove a key"]="Supprimer une clé"
["Disable / re-enable a key"]="Désactiver / réactiver une clé"
["Repair ~/.ssh permissions"]="Réparer les permissions ~/.ssh"
["Detect duplicates"]="Détecter les doublons"
["Change target user"]="Changer d'utilisateur ciblé"
["Local users"]="Utilisateurs locaux"
["Authorized keys"]="Clés autorisées"
["Permission repair"]="Réparation permissions"
["Duplicates"]="Doublons"
["SSH keys of %s (to connect ELSEWHERE)"]="Clés SSH de %s (pour se connecter AILLEURS)"
["List key pairs"]="Lister les paires de clés"
["Generate a new key (ED25519 by default)"]="Générer une nouvelle clé (ED25519 par défaut)"
["Inspect a key"]="Inspecter une clé"
["Show / export a public key"]="Afficher / exporter une clé publique"
["Change the passphrase"]="Changer la phrase secrète"
["Delete a key pair"]="Supprimer une paire de clés"
["ssh-agent: list"]="ssh-agent : lister"
["ssh-agent: add a key"]="ssh-agent : ajouter une clé"
["ssh-agent: remove a key"]="ssh-agent : retirer une clé"
["Key pairs"]="Paires de clés"
["Public key"]="Clé publique"
["Remote hosts (~/.ssh/config) - optional"]="Machines distantes (~/.ssh/config) - facultatif"
["User: %s"]="Utilisateur : %s"
["Remote hosts"]="Machines distantes"
["List hosts"]="Lister les machines"
["Add a host"]="Ajouter une machine"
["Edit a host"]="Modifier une machine"
["Delete a host"]="Supprimer une machine"
["Test a host (resolution, port, auth)"]="Tester une machine (résolution, port, auth)"
["Effective configuration (ssh -G)"]="Configuration effective (ssh -G)"
["Connect to a host"]="Se connecter à une machine"
["Copy a key (ssh-copy-id)"]="Copier une clé (ssh-copy-id)"
["Revoke a remote key"]="Retirer une clé distante"
["known_hosts: list"]="known_hosts : lister"
["known_hosts: remove a fingerprint"]="known_hosts : supprimer une empreinte"
["Host test"]="Test machine"
["LSSHM settings"]="Paramètres de LSSHM"
["Managed user : %s"]="Utilisateur administré : %s"
["Update check : %s"]="Vérification des mises à jour : %s"