ssh close connection after insert password
Posted: Fri May 26, 2017 8:05 am
I access on vocore2 over luci without problems but if I try to connect over ssh the connection is closed afeter insert a password. Why?
> set line /dev/ttyUSB0
> set speed 115200
> set handshake none
> set flow-control none
> set carrier-watch off
> robust
> connect
Please choose the operation:
0: Load system code then write to Flash via SERIAL.
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
5: Load system code then write to Flash via USB Storage.
7: Load Boot Loader code then write to Flash via Serial.
8: Start Web Server to load system code.
9: Load Boot Loader code then write to Flash via TFTP.
> 0
0: System Load Linux then write to Flash via Serial.
## Ready for binary (kermit) download to 0x80100000 at 115200 bps...
press key Ctrl+\ c
> send /home/<username>/Downloads/<firmware>.bin
> q
# echo 'rmmod ohci_platform' >> /etc/rc.local
uci set wireless.sta.disabled=0
uci commit
/etc/init.d/network restart
sleep 10
uci set wireless.sta.disabled=1
uci commit
uci set wireless.sta.disabled=1
uci commit
/etc/init.d/network restart
rmmod ohci_platform
uci set wireless.sta.disabled=0
uci commit
/etc/init.d/network restart
TIMEOUT=10
SLEEP=1
sta_err=0
while [ $(iwinfo | grep -c "ESSID: unknown") -ge 1 ]; do
let sta_err=$sta_err+1
if [ $((sta_err * SLEEP)) -ge $TIMEOUT ]; then
uci set wireless.sta.disabled=1
uci commit
/etc/init.d/network restart
break
fi
sleep $SLEEP
done
/root/try-sta.sh
gdate.c: In function 'g_date_strftime':
gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
^~~~~~