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 […]

Read More

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 […]

Read More

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]   […]

Read More

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 […]

Read More

Linux : mdadm move other system or remount --assemble Hint

1. reassemble way mdadm --stop /dev/md0 mdadm --assemble /dev/md0 /dev/sd[cd]1 mdadm --detail /dev/md0 mdadm --detail --scan --verbose > /etc/mdadm.conf [NOTICE] add DEVICE vi /etc/mdadm.conf ARRAY /dev/md0 level=raid1 num-devices=2 metadata=1.2 name=owl49:0 UUID=xxxxxxxx:0e451cef:a240f6e8:bf4734b4 devices=/dev/sdb1,/dev/sdc1 DEVICE /dev/sdb1 DEVICE /dev/sdc1 2. make it fail manually & remove & add # check examplemdadm --examine /dev/sd[a-z] # check disksfdisk -l # […]

Read More

Linux Raid mdadm Hint

# fdisk /dev/sdb Command (m for help): d Command (m for help): n Command (m for help): n Partition type p   primary (0 primary, 0 extended, 4 free) e   extended (container for logical partitions) Select (default p): Enter Using default response p. Partition number (1-4, default 1): Enter First sector (2048-1953525167, default 2048): Enter Last […]

Read More