dropbear mit construct-server o.k mit eigenem server gehts nicht
Versuche vergeblich dropbear auf 7050 mit 14.04.33 zum Laufen zu bringen.
Wenn ich die benötigten Dateien vom construct-server lade, funktioniert der Zugang mit Putty.
Wenn ich dagegen die Dateien von meinem webspace lade, sagt putty "connection refused".
In der var/tmp scheinen die Dateien geladen zu sein - aber dropbear ist bei "ps " nicht aktiv.
Komm einfach nicht mehr weiter.
Natürlich bin ich ein Linux Dau und weiss nicht, wie ich die Ursache analysieren soll.
Kann mir bitte jemand bei der Diagnose helfen.
debug.cfg : eigener Server
max=10
i=0
while [ $i -lt $max ]; do
if ping -c 1
www.heise.de >/dev/null; then
break
fi
let i=$i+1
sleep 15
done
cd /var/tmp
wget
http://www.xxxxxxx.de/Fritzbox/bftpd
wget
http://www.xxxxxxx.de/Fritzbox/bftpd.conf
chmod +x bftpd
chmod 777 bftpd.conf
echo "xxxxxxxxxxxx:7I1SfYVTnxKpA:0:0:root:/:null" >> /var/tmp/passwd
/var/tmp/bftpd -d -c /var/tmp/bftpd.conf
LED_DEVICE=/proc/led_mod/led
if [ ! -f /proc/led_mod/led ] ; then
LED_DEVICE=/var/led
echo "set led: ${LED_DEVICE}"
fi
# start internet phone led flashing
echo "set internet phone led to blink (modul=14, state=3)"
echo 14,3 > ${LED_DEVICE}
# check kernel version
KERNEL_VERSION=`uname -r | grep 2.6`
if [ -z "${KERNEL_VERSION}" ]
then
KERNEL_VERSION="linux24"
ETHERWAKE="etherwake"
else
KERNEL_VERSION="linux26"
ETHERWAKE="ether-wake"
fi
# init busybox var
BUSYBOX="/bin/busybox"
# load SSH-Server (dropbear) and etherwake
# CONFIGURATION
# SSH
# port
dropbearport="22"
# password
PASSWD='$1$1kW27m/m$hI1GJ0XRjsGpyO6/dsTnV0'
# Etherwake
# MAC address
wolmac="01:23:45:67:89:AB"
# interface to use for WOL
# intf = std - ata
# eth0 = LAN1 - WAN
# eth1 = LAN2 - LAN1
wolinterface="eth0"
# CONFIGURATION END
# wait for server
while !(ping -c 1
www.xxxxxxxxx.de)
do
sleep 5
done
# load files
# check if file already exists
if [ ! -f /var/tmp/dropbear ]
then
wget -qO /var/tmp/dropbear http://www.xxxxxxx.de/files/${KERNEL_VERSION}/dropbear
# make it executable
chmod +x /var/tmp/dropbear
fi
# check if file already exists
if [ ! -f /var/tmp/busybox ]
then
wget -qO /var/tmp/busybox http://www.xxxxxxxx.de/files/${KERNEL_VERSION}/busybox
# make it executable
chmod +x /var/tmp/busybox
fi
# set busybox var
BUSYBOX="/var/tmp/busybox"
# change root password
${BUSYBOX} sed -e "/root:/s#^root:[^:]*:#root:${PASSWD}:#" -i /var/tmp/shadow
# create symlink for dropbearkey
ln -s /var/tmp/dropbear dropbearkey
${BUSYBOX} uudecode -o /var/tmp/dropbear_rsa_host_key << 'RSA'
begin 600 /var/tmp/dropbear_rsa_host_key
M````!W-S:"UR<V$````#`0`!````@P#<87EC\V*;&-ZX45@"F!WH[BR3RW`&
MW<S)<9HIGL:H)?:-*C'7E7<EYZM.VVE+>%L:7&R2H29S=NF[@ET`C^1^HV4J
MW>:8EO3_AJGKO-C(AA/>:1=K>3KV4;Q9`AKP3N!<PMA]UK3!6%W5.,N^5SIZ
MLPSP4F1$QT)K$-7F2J3HIOMM````@C,\5#$)(BDEV(WHEWH.[)$]8D[`$MS]
MSP$<<+=Q
4GPE#B>/$"ED]1,Y(C3[$4F[6>O#U`RP0X)K()YEY=E<5=`!`L
M[I#H!!Q0X[5'7.7N+GD/0Y3:B]K_SA09J0_(V-,E-$G^`5HV^0X[FF!Z;_DQ
MPN8/>PQ*6+7-%\AT7A\I,J\```!"`.F;_YCM4G!4$+UW5G,8"=,#I=Z+PR5_
M?V:QJ/RO5R&3'QRK[`9*67]C>8J(E3W'_"=)X"]\8*<@$4Q`S9GY@:5K````
M0@#
[email protected]+D4#>]ZAOBJ[,$E>[QTK`JQOI98LL4Z[8G](@-[DS?C%NT?FT0D=
6"-#Q!,=8+(C:9L\_>BY+J?C4$4I`AP``
`
end
RSA
${BUSYBOX} uudecode -o /var/tmp/dropbear_dss_host_key << 'DSS'
begin 600 /var/tmp/dropbear_dss_host_key
M````!W-S:"UD<W,```"!`),$@6!&M)%CN2JM!YYG/4$&8`59$OC*[8Y_:<_^
MG-Q5$O!4QV?Z#/5<Z`7E;0'ESAB/"\%\47K4K_3`ELL&8_I,BX%"^&!&#>V^
M=3F@%Q17=3U&9`Y$\%&)*AS-F_;<]_6OL@V60(Z
0?'"/!FC'6"":7SJ;@H
M!+LV1M@B\+3M````%0"K79FZHU-&+,(F[15Z_24CWML-N0```(`O(HLC3*Z!
MB3#]E<06!&`8P:Y498'BA3&(6J"T;*@P[&(2?S7A+>8,XT?5<8D^PV4%4I:/
MU8%Q2O5U6W^J\ZM6=+-:A29#!A8N#]+^;EFP0ET]_-E^"E0$HALDSH/"FQS:
M$K+L^;9R_N1C[$3124:+`KU*W=?J5\IY:O<!A4OGU````(!XB,[M*Q0I9^B`
M,APX.\@%?1'DD<BJ(^[B:/.V%J4V.LB4AI5J10'SX1=>%Q=-Q65U:"1Q#;'=
M1S.%B;NP*AD0@0XU@UZ76J`]("ZXH^H1;>EBF.!.G^09^0>/,LVKZ9';!
MLM+R[U@N4#"TH1UJHP!KQB2-OWR2#2AD597)%0```!0"]Q3OA
PO0X*)X9G
';8J63+HUT0``
`
end
DSS
# start dropbear
sleep 60
/var/tmp/dropbear -p ${dropbearport} -r /var/tmp/dropbear_rsa_host_key -d /var/tmp/dropbear_dss_host_key
# create simplified WOL script
echo "${BUSYBOX} ${ETHERWAKE} -i ${wolinterface} ${wolmac}" > /var/tmp/startpc
# make it executable
chmod +x /var/tmp/startpc
# stop internet phone led flashing
echo 14,1 > ${LED_DEVICE}
debug.cfg construct-server !!!!!
# Anleitung von IP Forum
max=10
i=0
while [ $i -lt $max ]; do
if ping -c 1
www.heise.de >/dev/null; then
break
fi
let i=$i+1
sleep 15
done
cd /var/tmp
wget
http://www.xxxxxxxx.de/Fritzbox/bftpd
wget
http://www.xxxxxxxx.de/Fritzbox/bftpd.conf
chmod +x bftpd
chmod 777 bftpd.conf
echo "xxxxxxxxxxx:7I1SfYVTnxKpA:0:0:root:/:null" >> /var/tmp/passwd
/var/tmp/bftpd -d -c /var/tmp/bftpd.conf
LED_DEVICE=/proc/led_mod/led
if [ ! -f /proc/led_mod/led ] ; then
LED_DEVICE=/var/led
echo "set led: ${LED_DEVICE}"
fi
# start internet phone led flashing
echo "set internet phone led to blink (modul=14, state=3)"
echo 14,3 > ${LED_DEVICE}
# check kernel version
KERNEL_VERSION=`uname -r | grep 2.6`
if [ -z "${KERNEL_VERSION}" ]
then
KERNEL_VERSION="linux24"
ETHERWAKE="etherwake"
else
KERNEL_VERSION="linux26"
ETHERWAKE="ether-wake"
fi
# init busybox var
BUSYBOX="/bin/busybox"
# load SSH-Server (dropbear) and etherwake
# CONFIGURATION
# SSH
# port
dropbearport="22"
# password
PASSWD='$1$EqZk3dxB$r9hR33at6XqSBRXus0P87/'
# Etherwake
# MAC address
wolmac="01:23:45:67:89:AB"
# interface to use for WOL
# intf = std - ata
# eth0 = LAN1 - WAN
# eth1 = LAN2 - LAN1
wolinterface="eth0"
# CONFIGURATION END
# wait for server
while !(ping -c 1
www.the-construct.com)
do
sleep 5
done
# load files
# check if file already exists
if [ ! -f /var/tmp/dropbear ]
then
wget -qO /var/tmp/dropbear http://www.the-construct.com/files/${KERNEL_VERSION}/dropbear
# make it executable
chmod +x /var/tmp/dropbear
fi
# check if file already exists
if [ ! -f /var/tmp/busybox ]
then
wget -qO /var/tmp/busybox http://www.the-construct.com/files/${KERNEL_VERSION}/busybox
# make it executable
chmod +x /var/tmp/busybox
fi
# set busybox var
BUSYBOX="/var/tmp/busybox"
# change root password
${BUSYBOX} sed -e "/root:/s#^root:[^:]*:#root:${PASSWD}:#" -i /var/tmp/shadow
# create symlink for dropbearkey
ln -s /var/tmp/dropbear dropbearkey
${BUSYBOX} uudecode -o /var/tmp/dropbear_rsa_host_key << 'RSA'
begin 600 /var/tmp/dropbear_rsa_host_key
M````!W-S:"UR<V$````#`0`!````@P"/]@-]#&0D'%:G"#>&1U/WK:1I@[I+
MPH65H]SNRCBRCJM"M^4PL>3)XP4H^RWUAV<`]RV*?*F,SIS!_Q4,J`<>@W0[
MG)(X:EE4@]7S6RWT/L)RADDE8&7]^N20;BET>)(!IWL5J^+S(+K!'A9OW#HX
M0S^M22"HA("H"'-$R6L34O`S````@@6AUED:%P#BJO$U_18?S$4P8?).V0<%
MP3PM@0-&GAD^0ZT$C,[NYLB//3!Q0T<+V1?,D]>+,0;U/F3(F@8XO*Z0WJM;
M1]S%@,?>/)@-+*$3**)*`D0(L;+)PO6HV^M\\B4I\TS]E?Q@V0E1&D\BHZQW
M,?LZ^6IJ:5I^*1S!&9/,U:$```!"`)M;9UK&/5K$0B)_./4\4J+(LWTA^.R8
M?UCQU]QM7/)4"1/G:+6=IGC.).LV1NY(!;CSYU^H/WMO5!P337)J$/Q_````
M0@#M.*RU/H49^\EQ5`'-W$EH-(K:EA0[)3RK.ERB#VB*3/71ZWIDIJK7&7_+
6P!0$BASNN!:;4BBP$&I^UP$A3L("30``
`
end
RSA
${BUSYBOX} uudecode -o /var/tmp/dropbear_dss_host_key << 'DSS'
begin 600 /var/tmp/dropbear_dss_host_key
M````!W-S:"UD<W,```"!`/"?PWTW6/`O'N2.%D1J1)BP9V9'#K5[Y<$;98NS
M;O_SF<)X/@A"[9<@T'[^/
[email protected]$_<5,TF2HK0'[_85YCF.V:5IE8:E?
M'_0KC=Q;6]:2_V$HB+SS"VF-Q+V.=`\3FT!(BQN@[-RB3`2E]?PMGOWGZ>'K
MK#>8V[`6^9_/````%0#L4@)E#RC@"<37NP'QG(DQ:H6020```(!PI#M?'(NY
M''SVW_(U[9G_JI90[%P-Q#+AT>XF^BZ.:.@[T16`P5R9E*5[-!:B)9UBJ&R#
M@\'%FBGOAAM,B;<MQ(PR@MM=>_K3@E?B#LMFL?8'
[email protected]++XZ4#!K8/#0ZW
MWK')E;9A-<C2TT^^$)5-NU+K3EUW//S?$.BY3!"TA@```($`R,`^L023=,?&
M?G:I#WCFMRW_FIQSC&>$4.M2.!45XP;M(JC".C00K/+(Z=LTRP$(,<&*U3DX
MZ#K^UEJP@L!(<LG/KT'JD@400_X*L>0LI"6XI\2\N%9+QXA,AX$U;4B6JID*
MBA4'*?67,D*!H"2\RI46#,/#\DUG<UT5+3OQ7W,````5`+OR+G:3=Z@I,)3K
)@^=OA[6-;16/
`
end
DSS
# start dropbear
sleep 60
/var/tmp/dropbear -p ${dropbearport} -r /var/tmp/dropbear_rsa_host_key -d /var/tmp/dropbear_dss_host_key
# create simplified WOL script
echo "${BUSYBOX} ${ETHERWAKE} -i ${wolinterface} ${wolmac}" > /var/tmp/startpc
# make it executable
chmod +x /var/tmp/startpc
# stop internet phone led flashing
echo 14,1 > ${LED_DEVICE}