Centos-7: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
Zeile 2: Zeile 2:
 
*hostnamectl set-hostname saul.xinux.org
 
*hostnamectl set-hostname saul.xinux.org
 
=Extra Packages for Enterprise Linux (EPEL) repository=
 
=Extra Packages for Enterprise Linux (EPEL) repository=
*yum install http://ftp.nluug.nl/pub/os/Linux/distr/fedora-epel/7/x86_64/e/epel-release-7-9.noarch.rpm
+
*yum install epel-release
  
 
=Ssh port ändern=
 
=Ssh port ändern=

Version vom 8. Dezember 2017, 13:31 Uhr

Hostname ändern

  • hostnamectl set-hostname saul.xinux.org

Extra Packages for Enterprise Linux (EPEL) repository

  • yum install epel-release

Ssh port ändern

selinux

  • semanage port -a -t ssh_port_t -p tcp 2292

ssh port ändern

/etc/ssh/sshd/config 
PORT 8472 
  • systemctl restart sshd

Network Security