CentOS伺服器設定Putty自動遠程登陸1. 產生公開金鑰和密鑰verdana@hostname:~$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/verdana/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase
CentOS系統裡的曆史命令:history[root@linux ~]# history [n][root@linux ~]# history [-c][root@linux ~]# history [-raw] histfiles參數:n :數字,意思是『要列出最近的 n 筆命令列表』的意思!-c :將目前的 shell 中的所有 history 內容全部消除-a :將目前新增的 history 指令新增入 histfiles 中,若沒有加 histfiles ,則預設寫入 ~/.bash_
cannot restore segment prot after reloc: Permission denied,segmentreloc編輯/etc/selinux/config,找到這段:# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is
linux下簡單抓包分析,linux抓包有時候會遇到一些問題需要我們來抓包分析,當手頭又沒有專業的抓包工具的時候,可以用tcpdump來替代一下(一般的發行版都內建這個工具)比如我們要分析一下eth0介面下跟192.168.7.188 這個目的IP地址22連接埠的發包情況tcpdump -i eth0 dst 192.168.7.188 and port 22tcpdump -i eth0 dst 192.168.7.188 and port 22tcpdump: verbose output