root@mhxy-compile02:~ # cat /etc/rc.confifconfig_em0="DHCP"sshd_enable="NO"ntpd_enable="YES"# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disabledumpdev="AUTO"zfs_enable="YES"puppet_enable="YES"ipv6_enable="NO"hostname="mhxy-compile02.i.nease.net"nfs_client_enable="YES"rpc_lockd_enable="YES"rpc_statd_enable="YES"
2. SSH
命令:
/etc/rc.d/sshd start , /etc/rc.d/sshd restart
SSH配置文件:
root@mhxy-compile02:~ # cat /etc/ssh/sshd_config# THIS FILE IS AUTOMATICALLY GENERATED BY PUPPET.# DO NOT EDIT THIS FILE.# 1. BasicPort 32200Protocol 2# 2. AuthenticationHostKey /etc/ssh/ssh_host_rsa_keyHostKey /etc/ssh/ssh_host_dsa_keyKeyRegenerationInterval 3600ServerKeyBits 768UsePrivilegeSeparation yesLoginGraceTime 120PermitRootLogin noStrictModes yesRSAAuthentication yesPubkeyAuthentication yesPermitEmptyPasswords noChallengeResponseAuthentication noPasswordAuthentication noIgnoreRhosts yesRhostsRSAAuthentication noHostbasedAuthentication no# 3. FeaturesUseDNS noX11Forwarding yesX11DisplayOffset 10PrintMotd noPrintLastLog yesTCPKeepAlive yesAcceptEnv LANG LC_*# 4. LoggingSyslogFacility AUTHLogLevel INFO# 5. x509Subsystem sftp /usr/libexec/sftp-server#CACertificateFile /etc/ssh/ca/ca.cer