netstat -tnl lsof -i -P -n | grep LISTEN netstat -tulpn | grep LISTEN ss -tulpn | grep LISTEN lsof -i:22 nmap -sTU -O
CentOS : make localhost.crt openssl Hint
openssl req -new -x509 -newkey rsa:2048 -keyout localhost.key -nodes -days 3650 -out localhost.crt
Linux : lvm swap extend Hint
swapoff /dev/fedora/swap -v lvextend /dev/fedora/swap -L +46G mkswap /dev/fedora/swap swapon -va
Linux : root disk extend Hint : growpart lvextend resize2fs xfs_growfs
# yum -y install cloud-utils-growpart # lsblk sda 8:0 0 1.5T 0 disk ├─sda1 8:1 0 1G 0 part /boot └─sda2 8:2 0 1.5T 0 part ├─fedora-root 253:0 0 […]
CentOS 8 : Network Setup Hint
# yum install NetworkManager-tui # nmtui # nmcli connection down eth0 && nmcli connection up eth0
putty : auto login by rsa-key Hint!
"C:\Program Files\PuTTY\puttygen.exe" > [Generate] Click mouse move randomly ! Edit [Key-comment] properly ! Key Passphrase : xxxx (what ever you want) Public key form pasting into OpenSSH authorised_keys : Drag & Copy, Send to Server Manager [Save public key] & [Save private key] Click ------------------------------------------- Putty.exe > Load & Add Configuration […]
CentOS 7 : firewalld dmz ssh : local network only Hint
ssh : local network only firewall-cmd --permanent --zone=dmz --add-service=ssh firewall-cmd --permanent --zone=dmz --add-source=192.168.0.0/24 firewall-cmd --permanent --zone=public --remove-service=ssh firewall-cmd --reload vi /etc/firewalld/zones/public.xml vi /etc/firewalld/zones/dmz.xml
CentOS 7 : firewalld services port change Hint
cp /usr/lib/firewalld/services/ssh.xml /etc/firewalld/services/ vi /etc/firewalld/services/ssh.xml <?xml version="1.0" encoding="utf-8"?> <service> <short>SSH</short> <description>Secure Shell (SSH) is a protocol for logging into and executing commands on remote machines. It provides secure encrypted communications. If you plan on accessing your machine remotely via SSH over a firewalled interface, enable this option. You need the openssh-server package installed […]
Toad for oracle over ssh with putty Hint
Download & Install putty https://www.putty.org/ Putty Configuration Connection > SSH > Tunnels Check [Local ports ....] Check [Remote ports ....] Source Port : 15219 Destination : yourdb.server.com:1521 Click [Add] Do not click Open button, You must save this configure... Session : Input your Host, ssh Port, Saved Session name, and Click [Save] […]
CentOS 7 : yum local.repos by cdrom Hint
mkdir /mnt/cdrom mount /dev/cdrom /mnt/cdrom mkdir /etc/yum.repos.d/org mv /etc/yum.repos.d/CentOS-* /etc/yum.repos.d/org/ vi /etc/yum.repos.d/local.repo [local-repo] name=Local Repository baseurl=file:///mnt/cdrom/ enabled=1 gpgcheck=0 ========================= append IOS file mount for update local repos mkdir -p /mnt/CentOS7-1908 mount -o loop /R1D1TB1/install/CentOS-7-x86_64-DVD-1908.iso /mnt/CentOS7-1908 vi /etc/yum.repos.d/local.repo [local-repo] name=Local Repository baseurl=file:///mnt/cdrom/ enabled=1 gpgcheck=0 [local-CentOS7-1908] name=Local Repository CentOS7-1908 baseurl=file:///mnt/CentOS7-1908 enabled=1 gpgcheck=0 […]