From bc41f5d2730be50cd9ba29d4b7ba028ae8f972db Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 23 Jun 2015 13:21:29 +0200 Subject: [PATCH 1/1] troubleshooting early ssh access --- initscripts/pl_netinit | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/initscripts/pl_netinit b/initscripts/pl_netinit index a134d88..b652674 100755 --- a/initscripts/pl_netinit +++ b/initscripts/pl_netinit @@ -349,3 +349,24 @@ echo $(date "+%H:%M:%S") " pl_netinit: attempting to start networking" /sbin/ifconfig $ETH_DEVICE > $IFCONFIG_OUTPUT echo $(date "+%H:%M:%S") " pl_netinit: network online" + +echo "BEG post pl_netinit forensics" + +file=/root/.ssh/authorized_keys +echo "$file" +if ! [ -f "$file" ]; then + echo "!!!!!!!!!! missing $file" +else + echo "---------- $file" + cat $file +fi + +file="/etc/ssh/sshd_config" +if ! [ -f "$file" ]; then + echo "!!!!!!!!!! missing $file" +else + echo '---------- egrep Pass|Auth|PAM' $file + egrep 'Pass|Auth|PAM' $file +fi + +echo "END post pl_netinit forensics" -- 2.45.2