Install SSH server.
Log in to the server as a “webmaster“.
localhost login: webmaster
password:
[webmaster@localhost ~]$ us - password:
[root@localhost ~]# dnf install openssh-server openssh-clients
[root@localhost ~]# systemctl start sshd
[root@localhost ~]# systemctl enable sshd
[root@localhost ~]# systemctl status sshd ● sshd.service - OpenSSH server daemon Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset> Active: active (running) since Sun 2021-04-11 18:03:51 JST; 5h 16min ago Docs: man:sshd(8) man:sshd_config(5) Main PID: 870 (sshd) Tasks: 1 (limit: 23603) Memory: 4.6M CGroup: /system.slice/sshd.service mq870 /usr/sbin/sshd -D -oCiphers=aes256-gcm@openssh.com,chacha20-po> 4月 11 18:03:51 localhost.localdomain systemd[1]: Starting OpenSSH server daem> 4月 11 18:03:51 localhost.localdomain sshd[870]: Server listening on 0.0.0.0 p> 4月 11 18:03:51 localhost.localdomain sshd[870]: Server listening on :: port 2> 4月 11 18:03:51 localhost.localdomain systemd[1]: Started OpenSSH server daemo> 4月 11 22:29:36 localhost.localdomain sshd[5425]: Accepted password for webmas> 4月 11 22:29:36 localhost.localdomain sshd[5425]: pam_unix(sshd:session): sess> 4月 11 23:19:30 localhost.localdomain sshd[5481]: Accepted password for webmas> 4月 11 23:19:30 localhost.localdomain sshd[5481]: pam_unix(sshd:session): sess> lines 1-19/19 (END)
Check current network settings.
Record the IP address in your network settings.
webmaster@www:~$ ip addr
span style="color: #ffffff;">1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp14s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 0c:2e:48:2b:dg:f4 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.3/24 brd 192.168.1.255 scope global dynamic enp2s0 #IP address, interface name record
valid_lft 11984sec preferred_lft 11984sec
inet6 20sd:ahq23:46dg:7rh9:2dg5:28uf:fls4:dehd/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 13592sec preferred_lft 11792sec
inet6 fft0::21fg3:2j8f:fo60:djed/64 scope link
valid_lft forever preferred_lft forever
Recorded IP address:192.168.1.3
コメント