fix it with these options in sshd.conf
GSSAPIAuthentication no
UseDNS no
some Unix notes
fix it with these options in sshd.conf
GSSAPIAuthentication no
UseDNS no
to only check the syntax:
root@hoshi:~# visudo -cf /etc/sudoers
/etc/sudoers: parsed OK
/etc/sudoers.d/README: parsed OK
/etc/sudoers.d/pwfeedback: parsed OK
First ,make sure you have a system that is registered, then run this script
#!/bin/bash
(
grep ‘\[‘ /etc/yum.repos.d/redhat.repo | sed ‘s/\[//g;s/\]//g’ | while read repo;do
reposync –gpgcheck -l –repoid=$repo –download_path=/swdepot/repos/ –downloadcomps –download-metadata
done
for d in $(ls /swdepot/repos);do
cd /swdepot/repos/$d
createrepo -v /swdepot/repos/$d
done
) >>/var/log/reposync.log 2>&1
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.1
apachectl -k restart
Want to test an antivirus?
Use this repo
https://github.com/ytisf/theZoo
yum install bind
vi /etc/named.conf
found
———–
zone “.” IN {
type hint;
file “named.ca”;
};
———–
replace with
———–
zone “.” IN {
type forward;
forward only;
forwarders { 8.8.8.8; 8.8.4.4; };
};
———–
service named start
also change the ip address to the server’s ip address, and make sure to set the allow-query settings properly
options {
listen-on port 53 { 192.168.5.100; };
allow-query { localhost;any; };
First, install the kernel for the release
Then
# yum downgrade redhat-release
for repo in $(subscription-manager repos | grep ID| cut -d: -f 2);do subscription-manager repos --enable=$repo;done
In server a
# rpm -qa –queryformat “%{NAME}\n” > pkgs
In server b
# xargs yum -y install < pkgs
OR
in source server: rpm -qa > installed-software.log
in target server: yum -y install $(cat /home/user/installed-software.log)
– name: Retrieve stuff from mysql
command: >
mysql –user=alice –password=topsecret dbname
–host=147.102.160.1 –batch –skip-column-names
–execute=”SELECT stuff from stuff_table”
register: stuff
check_mode: no
changed_when: False
– name: Do something with stuff
debug: “{{ item }}”
with_items: stuff.stdout_lines
#—— another example
– name: Get username
command: mysql -u {{ username }} -p {{ mysql_root_password }} {{ database }} -Ns -e “
register: username
– debug: msg=”{{ username.stdout_lines }}”