如何檢查伺服器(HTTPS)的加密協定
使用 openssl
openssl s_client -connect "hostname/ip":443
檢查憑證日期
echo | openssl s_client -connect "hostname/ip":443 -servername "hostname/ip" 2>/dev/null |
使用 nmap
nmap --script ssl-enum-ciphers -p 443 "hostname/ip"
參考資料
HTTPS網頁伺服器停用不安全的SSLv2與SSLv3加密協定
How to check SSL certificate for validity?
2018年11月14日 星期三
2018年3月11日 星期日
Vmware-VCenter Server Appliance 6.5 (VCSA) 無法正常開機,Failed to start Network Service
Vmware-VCenter Server Appliance 6.5 (VCSA) 無法正常開機,Failed to start Network Service
VCSA6.5無法正常開機,出現
Failed to start Network Service
1.使用root登入VCSA 6.5 主機
2.在shell模式下,執行指令
fsck -fy /dev/mapper/log_vg-log
3.重新開機
reboot -f
參考資料:
vCenter Server Appliance 6.5 fails to boot with error: Failed to start Network Service (2150986)
VCSA 6.5 fails to start File System Check and Network Service
VCSA6.5無法正常開機,出現
Failed to start Network Service
1.使用root登入VCSA 6.5 主機
2.在shell模式下,執行指令
fsck -fy /dev/mapper/log_vg-log
3.重新開機
reboot -f
參考資料:
vCenter Server Appliance 6.5 fails to boot with error: Failed to start Network Service (2150986)
VCSA 6.5 fails to start File System Check and Network Service
Vmware-VCenter Server Appliance 6.5 (VCSA) 無法正常開機,檔案系統異常
Vmware-VCenter Server Appliance 6.5 (VCSA) 無法正常開機,檔案系統異常
VCSA6.5無法正常開機,出現
Failed to start file system check on /dev/disk...
1.依據原廠文件,在系統開機畫面時,按"e"進入GNU GRUB Edit Menu。
2.在linux開頭的指令最後段加入 systemd.unit=emergency.target
3.完成後按F10,進行開機。
4.進入命令模式後,執行以下指令,檢查檔案系統。
/bin/sh
/bin/mount
blkid
5.執行e2fsck 修復檔案系統。
e2fsck -y /dev/sda3
6.重新開機。
reboot -f
參考資料:
VCSA 6.5 fails to start with error: Failed to start file system check on /dev/disk... (2149838)
Manually running fsck on vCenter Server Appliance 6.5 (2147154)
VCSA6.5無法正常開機,出現
Failed to start file system check on /dev/disk...
1.依據原廠文件,在系統開機畫面時,按"e"進入GNU GRUB Edit Menu。
2.在linux開頭的指令最後段加入 systemd.unit=emergency.target
3.完成後按F10,進行開機。
4.進入命令模式後,執行以下指令,檢查檔案系統。
/bin/sh
/bin/mount
blkid
5.執行e2fsck 修復檔案系統。
e2fsck -y /dev/sda3
6.重新開機。
reboot -f
參考資料:
VCSA 6.5 fails to start with error: Failed to start file system check on /dev/disk... (2149838)
Manually running fsck on vCenter Server Appliance 6.5 (2147154)
Vmware-VCenter Server Appliance 6.5 (VCSA) 忘記root密碼,重新設定
VCenter Server Appliance 6.5 (VCSA) 忘記root密碼,重新設定
1.依據原廠建議先進行快照,完成後重新開機。
2.在系統開機畫面時,按"e"進入GNU GRUB Edit Menu。
3.在linux開頭的指令最後段加入 rw init=/bin/bash
4.完成後按F10,進行開機。
5.進入命令模式後,執行passwd,設定新密碼。
6.設定完成後,再依序執行 umount / 及 reboot -f 重新開機。
參考資料:
How to reset the lost or forgotten root password in vCenter Server Appliance 6.5 (2147144)
How to reset the lost or forgotten root password in vCenter Server Appliance 6.5
1.依據原廠建議先進行快照,完成後重新開機。
2.在系統開機畫面時,按"e"進入GNU GRUB Edit Menu。
3.在linux開頭的指令最後段加入 rw init=/bin/bash
4.完成後按F10,進行開機。
5.進入命令模式後,執行passwd,設定新密碼。
6.設定完成後,再依序執行 umount / 及 reboot -f 重新開機。
參考資料:
How to reset the lost or forgotten root password in vCenter Server Appliance 6.5 (2147144)
How to reset the lost or forgotten root password in vCenter Server Appliance 6.5
2018年1月16日 星期二
電腦-Linux-sftp log 分檔設定
設定為每周為一檔案,保留4周。
vim /etc/logrotate.d/sftp
/var/log/sftp.log
{
weekly
rotate 4
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
vim /etc/logrotate.d/sftp
/var/log/sftp.log
{
weekly
rotate 4
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
電腦-Windows-Notepad++開啟多個視窗
需要同時開啟多個Notepad++,在網路看到2個方法
1.
http://kasonblog.blogspot.tw/2012/03/notepad-command-line-multiinst.html
建立Notepad++捷徑,多加上-multiInst -nosession 參數
2.
http://oh-ziway.blogspot.tw/2012/08/notepad.html
在Notepad++工具列,Run => Open in another instance
決定採用第一方式。
1.
http://kasonblog.blogspot.tw/2012/03/notepad-command-line-multiinst.html
建立Notepad++捷徑,多加上-multiInst -nosession 參數
2.
http://oh-ziway.blogspot.tw/2012/08/notepad.html
在Notepad++工具列,Run => Open in another instance
決定採用第一方式。
2017年9月30日 星期六
電腦-Linux-ssh內建sftp的log
電腦-Linux-ssh內建sftp的log
開啟ssh server內建sftp的log紀錄
修改/etc/ssh/sshd_config
Subsystem sftp /usr/libexec/openssh/sftp-server
改為
Subsystem sftp /usr/libexec/openssh/sftp-server -l INFO -f AUTH
說明:
-l INFO 是要記錄的細節
-f AUTH 是在 rsyslog 內要使用的設定
編輯 /etc/rsyslog.conf
增加
auth.* /var/log/sftp.log
說明:
auth 對應到 -f AUTH
.* 代表所有事件
記錄存放位置
/var/log/sftp.log
記下 openssh 中 sftp的log
開啟ssh server內建sftp的log紀錄
修改/etc/ssh/sshd_config
Subsystem sftp /usr/libexec/openssh/sftp-server
改為
Subsystem sftp /usr/libexec/openssh/sftp-server -l INFO -f AUTH
說明:
-l INFO 是要記錄的細節
-f AUTH 是在 rsyslog 內要使用的設定
編輯 /etc/rsyslog.conf
增加
auth.* /var/log/sftp.log
說明:
auth 對應到 -f AUTH
.* 代表所有事件
記錄存放位置
/var/log/sftp.log
記下 openssh 中 sftp的log
訂閱:
文章 (Atom)

