|
发表于 2016-12-14 11:24:40
|
显示全部楼层
发现我的并不是因为升级导致ssh没起来<fstab内格式填写错误导致系统没起来:( >
然而发现解决楼主问题一个比较实用的办法(虽然没实操 ,看原理应该是可行的):
"
Put the image on the SD card. (Covered elsewhere.)
Ensure that you can determine the TCP/IP address once your Pi boots.
hint: Look at your router to see what addresses have been assigned.
Ensure that ssh will run and allow connections. Here's how I did it:
a. Mount the second SD Card partition, the big one with the etc directory.
b. Create a file etc/SSHFLAG
c. Insert the following code into etc/rc.local just above the exit 0 line.
if [ -e /etc/SSHFLAG ]; then
/usr/sbin/update-rc.d -f ssh defaults
/bin/rm /etc/SSHFLAG
/sbin/shutdown -r now
fi
The idea is that when your Pi boots, the SSHFLAG file triggers it to reconfigure ssh (regenerating the keys and starting the service), remove the flag file so it only happens once, and reboot your system. Worked for me, YMMV
"
>>>>>>>>>>>还有评论里: <<<<<<<<<<<<<<<<<<
“
After that, I had to add /etc/init.d/ssh start into /etc/rc.local file, so the SSH service starts
” |
|