[root@gpu2 cuda]# cd /etc/ssh/
[root@gpu2 ssh]# vi sshd_config
[root@gpu2 ssh]# cat sshd_config
# $OpenBSD: sshd_config,v 1.104 2021/07/02 05:11:21 dtucker Exp $
# 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:/usr/local/sbin:/usr/sbin
# 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.
:
省略
:
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
AllowUsers ko tt ki ←アカウントko tt kiのみログインを許す
[root@gpu2 ssh]#
[root@gpu2 ssh]# systemctl restart sshd
[root@gpu2 ssh]#