> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
349af816a8a0 almalinux:latest "/sbin/init" 36 seconds ago Up 34 seconds 0.0.0.0:2222->22/tcp, :::2222->22/tcp almalinux
[root@almalinux /]# dnf -y install openssh-server
Last metadata expiration check: 0:36:19 ago on Mon 10 May 2021 10:18:47 AM UTC.
Package openssh-server-8.0p1-5.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@almalinux /]# systemctl status sshd
● sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-05-10 10:18:33 UTC; 36min ago
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 110 (sshd)
Tasks: 2 (limit: 11814)
Memory: 12.5M
CGroup: /docker/00fbb741fec1b0253aaeea5fea71c7885f237add4c9b9e2b242fb4569460d809/system.slice/sshd.service
└─110 /usr/bin/qemu-x86_64 /usr/sbin/sshd -D -oCiphers=aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes2>
May 10 10:18:32 almalinux systemd[1]: Starting OpenSSH server daemon...
May 10 10:18:33 almalinux sshd[110]: Server listening on 0.0.0.0 port 22.
May 10 10:18:33 almalinux sshd[110]: Server listening on :: port 22.
May 10 10:18:33 almalinux systemd[1]: Started OpenSSH server daemon.
[root@almalinux /]# passwd root
Changing password for user root.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
コメント