From: Thierry Parmentelat Date: Tue, 23 Jun 2015 11:21:29 +0000 (+0200) Subject: troubleshooting early ssh access X-Git-Tag: bootcd-5.3-1~4 X-Git-Url: http://git.onelab.eu/?p=bootcd.git;a=commitdiff_plain;h=bc41f5d2730be50cd9ba29d4b7ba028ae8f972db troubleshooting early ssh access --- 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"