From b60e4fa74365c23e562b72fc84c647f52b4e105d Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 24 Mar 2026 18:08:29 +0300 Subject: [PATCH] backup: 2026-03-24 18:08 --- alacritty/.config/alacritty/alacritty.toml | 2 +- configs/99-hardening.conf | 65 ---------------------- restic/.config/resticprofile/profiles.yaml | 8 +-- ssh/.ssh/config.d/20-selfhost.conf | 8 ++- ssh/.ssh/config.d/40-proxy.conf | 1 + zed/.config/zed/settings.json | 11 +--- zsh/.config/zsh/config/aliases.zsh | 2 + 7 files changed, 17 insertions(+), 80 deletions(-) delete mode 100644 configs/99-hardening.conf diff --git a/alacritty/.config/alacritty/alacritty.toml b/alacritty/.config/alacritty/alacritty.toml index fa34b4a..19878eb 100644 --- a/alacritty/.config/alacritty/alacritty.toml +++ b/alacritty/.config/alacritty/alacritty.toml @@ -6,7 +6,7 @@ args = ["-l", "-c", "tmux new-session -A -s main"] [window] decorations = "None" # без рамок и заголовка startup_mode = "Maximized" # просто растянутое окно -opacity = 0.80 +opacity = 0.90 padding = { x = 10, y = 5 } [font] diff --git a/configs/99-hardening.conf b/configs/99-hardening.conf deleted file mode 100644 index c8752da..0000000 --- a/configs/99-hardening.conf +++ /dev/null @@ -1,65 +0,0 @@ -# sshd_config.d/99-hardening.conf -# Консервативное ужесточение для серверов общего назначения (Debian). - -Protocol 2 - # Разрешить только протокол SSH v2. - -# Authentication -PermitRootLogin no - # Запретить прямой вход под root. -PasswordAuthentication no - # Отключить вход по паролю. -KbdInteractiveAuthentication no - # Отключить keyboard-interactive (часто это OTP/пароль). -ChallengeResponseAuthentication no - # Отключить challenge-response аутентификацию. -AuthenticationMethods publickey - # Требовать аутентификацию по ключу. -PubkeyAuthentication yes - # Разрешить аутентификацию по ключу. -PermitEmptyPasswords no - # Запретить пустые пароли, даже если пароли где-то включены. -UsePAM yes - # Оставить PAM для управления аккаунтом и сессией. - -# Session and access controls -LoginGraceTime 30 - # Дать 30 секунд на аутентификацию. -MaxAuthTries 3 - # Ограничить число неудачных попыток на соединение. -MaxSessions 2 - # Ограничить число сессий в одном соединении. -MaxStartups 10:30:60 - # Дросселировать неаутентифицированные подключения под нагрузкой. -ClientAliveInterval 300 - # Отправлять keepalive каждые 5 минут. -ClientAliveCountMax 2 - # Рвать соединение после 2 пропущенных keepalive. -TCPKeepAlive no - # Отключить TCP keepalive, чтобы не зависали старые сессии. - -# Reduce legacy or risky features -IgnoreRhosts yes - # Игнорировать доверенные файлы .rhosts и .shosts. -HostbasedAuthentication no - # Отключить аутентификацию по хосту. -PermitUserEnvironment no - # Запретить пользователям задавать окружение через ~/.ssh/environment. -X11Forwarding no - # Отключить X11-форвардинг. -AllowAgentForwarding no - # Запретить форвардинг агента. -AllowTcpForwarding local - # Разрешить только локальный форвардинг портов (без remote/dynamic). -AllowStreamLocalForwarding no - # Отключить форвардинг Unix-сокетов. -PermitTunnel no - # Отключить форвардинг туннелей tun/tap. - -# Misc -UseDNS no - # Пропустить обратный DNS для ускорения входа. -Compression no - # Отключить сжатие, чтобы уменьшить поверхность атаки. -PrintMotd no - # Не печатать MOTD (обычно делает PAM). diff --git a/restic/.config/resticprofile/profiles.yaml b/restic/.config/resticprofile/profiles.yaml index 7f2f655..c3c93e6 100644 --- a/restic/.config/resticprofile/profiles.yaml +++ b/restic/.config/resticprofile/profiles.yaml @@ -29,7 +29,7 @@ projects: # Локальное зеркало projects projects-local: - repository: "rclone:home-file:files/System/Backups/ada-x1/Documents/Projects" + repository: "rclone:home-smb:backup/backups/ada-x1/Documents/Projects" password-file: "/home/ada/.config/resticprofile/pass.txt" backup: source: @@ -59,7 +59,7 @@ vaults: # Локальное зеркало vaults vaults-local: - repository: "rclone:home-file:files/System/Backups/ada-x1/Documents/Vaults" + repository: "rclone:home-smb:backup/backups/ada-x1/Documents/Vaults" password-file: "/home/ada/.config/resticprofile/pass.txt" backup: source: @@ -84,7 +84,7 @@ files: # Локальное зеркало files files-local: - repository: "rclone:home-file:files/System/Backups/ada-x1/Documents/Files" + repository: "rclone:home-smb:backup/backups/ada-x1/Documents/Files" password-file: "/home/ada/.config/resticprofile/pass.txt" backup: source: @@ -110,7 +110,7 @@ pictures: # Локальное зеркало pictures pictures-local: - repository: "rclone:home-file:files/System/Backups/ada-x1/Pictures" + repository: "rclone:home-smb:backup/backups/ada-x1/Pictures" password-file: "/home/ada/.config/resticprofile/pass.txt" backup: source: diff --git a/ssh/.ssh/config.d/20-selfhost.conf b/ssh/.ssh/config.d/20-selfhost.conf index 215b72f..2156562 100644 --- a/ssh/.ssh/config.d/20-selfhost.conf +++ b/ssh/.ssh/config.d/20-selfhost.conf @@ -5,7 +5,6 @@ Host vps vps-ada User ada IdentityFile ~/.ssh/keys/homelab_ssh.pub -# ZimaOS Host casa casaos casa-vm HostName 100.87.138.76 User ada @@ -20,6 +19,13 @@ Host pve SetEnv TERM=xterm-256color ProxyJump vps +Host openclaw + Hostname 192.168.1.20 + User openclaw + IdentityFile ~/.ssh/keys/adax1.pub + SetEnv TERM=xterm-256color + ProxyJump pve + Host git.ada-dev.ru HostName 100.87.138.76 Port 222 diff --git a/ssh/.ssh/config.d/40-proxy.conf b/ssh/.ssh/config.d/40-proxy.conf index 0af9b1d..0dd886e 100644 --- a/ssh/.ssh/config.d/40-proxy.conf +++ b/ssh/.ssh/config.d/40-proxy.conf @@ -1,5 +1,6 @@ Host ru-vps HostName 157.22.231.198 + Port 3422 User ada ServerAliveInterval 30 ServerAliveCountMax 3 diff --git a/zed/.config/zed/settings.json b/zed/.config/zed/settings.json index e82819e..3a6c8fe 100644 --- a/zed/.config/zed/settings.json +++ b/zed/.config/zed/settings.json @@ -1,11 +1,3 @@ -// Zed settings -// -// For information on how to configure Zed, see the Zed -// documentation: https://zed.dev/docs/configuring-zed -// -// To see all of Zed's default settings without changing your -// custom settings, run `zed: open default settings` from the -// command palette (cmd-shift-p / ctrl-shift-p) { "base_keymap": "VSCode", "use_smartcase_search": true, @@ -146,7 +138,8 @@ }, "ui_font_size": 16.0, "buffer_font_size": 14.0, - "proxy": "http://127.0.0.1:8118", + // "proxy": "http://127.0.0.1:8118", + "proxy": "socks5://ada:%3FHolivarr588856@157.22.231.198:1081", "theme": { "mode": "system", "light": "Ayu Light", diff --git a/zsh/.config/zsh/config/aliases.zsh b/zsh/.config/zsh/config/aliases.zsh index b5bfd00..fa54c75 100644 --- a/zsh/.config/zsh/config/aliases.zsh +++ b/zsh/.config/zsh/config/aliases.zsh @@ -172,3 +172,5 @@ alias lidoff='sudo systemctl unmask sleep.target suspend.target hibernate.target alias sshvpn='sshuttle --dns -r fl-vps 0/0 -X ~/.dotfiles/configs/.exclude-ip.txt' alias sshp-fg='ssh -D 127.0.0.1:1080 fl-vps -v sleep 9999' + +alias gbackup='git add . && git commit -m "backup: $(date +"%Y-%m-%d %H:%M")" && git push'