LoginGraceTime 1m 6. Restrict the Interface (IP Address) to Login (ListenAddress) If you have multiple interfaces on the server that are configured to different ip-address, you might not want everybody to login to the server using all those ip-address. Let us assume that you have the follo...
Specifies the local addresses sshd(8) should listen on. The following forms may be used: ListenAddress hostname|address [rdomain domain] ListenAddress hostname:port [rdomain domain] ListenAddress IPv4_address:port [rdomain domain] ListenAddress [hostname|address]:port [rdomain domain] ...
.Cm ListenAddress .Sm off .Ar hostname | address .Sm on .Op Cm rdomain Ar domain .It .Cm ListenAddress .Sm off .Ar hostname : port .Sm on .Op Cm rdomain Ar domain .It .Cm ListenAddress .Sm off .Ar IPv4_address : port .Sm on .Op Cm rdomain Ar do...
PortSpecifies the port number thatsshdlistens on. The default is 22. Multiple options of this type are permitted. See alsoListenAddress. PrintLastLogSpecifies whethersshdshould print the date and time of the last user login when a user logs in interactively. The default is "yes". ...
There is a bug with ssh.server's systemd startup scripts that will prevent SSH from starting at boot if you specify an IP with ListenAddress in /etc/ssh/sshd_config. See these for more details: https://unix.stackexchange.com/questions/499688/ssh-service-will-not-start-at-boot-if-using-...
.Cm ListenAddress .Sm off .Ar hostname : port .Sm on .Op Cm rdomain Ar domain .It .Cm ListenAddress .Sm off .Ar IPv4_address : port .Sm on .Op Cm rdomain Ar domain .It .Cm ListenAddress .Sm off .Oo Ar hostname | address Oc : Ar port .Sm on .Op...
.Cm ListenAddress .Sm off .Ar host | Ar IPv4_addr : Ar port .Sm on .It .Cm ListenAddress .Sm off .Oo .Ar host | Ar IPv6_addr Oc : Ar port .Sm on .El .Pp If .Ar port is not specified, sshd will listen on the address and all .Cm Port options...