OXIESEC PANEL
- Current Dir:
/
/
snap
/
core
/
17212
/
usr
/
lib
/
snapd
Server IP: 10.0.0.4
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/08/2025 02:18:07 PM
rwxr-xr-x
📄
complete.sh
5.27 KB
06/04/2024 10:58:39 PM
rw-r--r--
📄
etelpmoc.sh
6.87 KB
06/04/2024 10:58:39 PM
rw-r--r--
📄
info
138 bytes
12/18/2024 02:09:45 AM
rw-r--r--
📄
snap-bootstrap
9.66 MB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snap-confine
124.66 KB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snap-device-helper
38.64 KB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snap-discard-ns
26.57 KB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snap-exec
3.93 MB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snap-failure
2.48 MB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snap-fde-keymgr
3.55 MB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snap-gdb-shim
928.94 KB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snap-gdbserver-shim
928.94 KB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snap-mgmt
8.79 KB
12/18/2024 02:17:00 AM
rwxr-xr-x
📄
snap-preseed
8.61 MB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snap-recovery-chooser
6.68 MB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snap-repair
6.74 MB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snap-seccomp
2.06 MB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snap-update-ns
4.7 MB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snapctl
6.15 MB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snapd
20.76 MB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snapd-apparmor
2.04 MB
12/18/2024 02:17:10 AM
rwxr-xr-x
📄
snapd.core-fixup.sh
3.74 KB
12/18/2024 02:16:59 AM
rwxr-xr-x
📄
snapd.run-from-snap
73 bytes
12/18/2024 02:16:59 AM
rwxr-xr-x
📄
sshd-host-keygen
1.53 KB
05/08/2025 02:04:48 PM
rwxr-xr-x
📄
system-shutdown
22.53 KB
12/18/2024 02:17:10 AM
rwxr-xr-x
Editing: sshd-host-keygen
Close
#!/bin/sh set -eu # taken from the openssh-server.postinst get_config_option() { option="$1" [ -f /etc/ssh/sshd_config ] || return # TODO: actually only one '=' allowed after option perl -lne ' s/[[:space:]]+/ /g; s/[[:space:]]+$//; print if s/^[[:space:]]*'"$option"'[[:space:]=]+//i' \ /etc/ssh/sshd_config } host_keys_required() { hostkeys="$(get_config_option HostKey)" if [ "$hostkeys" ]; then echo "$hostkeys" else # No HostKey directives at all, so the server picks some # defaults. echo /etc/ssh/ssh_host_rsa_key echo /etc/ssh/ssh_host_dsa_key echo /etc/ssh/ssh_host_ecdsa_key echo /etc/ssh/ssh_host_ed25519_key fi } create_key() { msg="$1" shift hostkeys="$1" shift file="$1" shift if echo "$hostkeys" | grep -x "$file" >/dev/null && \ [ ! -f "$file" ] ; then printf "%s" "$msg" ssh-keygen -q -f "$file" -N '' "$@" echo if which restorecon >/dev/null 2>&1; then restorecon "$file" "$file.pub" fi ssh-keygen -l -f "$file.pub" sync fi } create_keys() { hostkeys="$(host_keys_required)" create_key "Creating SSH2 RSA key; this may take some time ..." \ "$hostkeys" /etc/ssh/ssh_host_rsa_key -t rsa create_key "Creating SSH2 DSA key; this may take some time ..." \ "$hostkeys" /etc/ssh/ssh_host_dsa_key -t dsa create_key "Creating SSH2 ECDSA key; this may take some time ..." \ "$hostkeys" /etc/ssh/ssh_host_ecdsa_key -t ecdsa create_key "Creating SSH2 ED25519 key; this may take some time ..." \ "$hostkeys" /etc/ssh/ssh_host_ed25519_key -t ed25519 } create_keys