树莓派取消开机ssh提示的方法
分类:Linux, Operating System
阅读 (4,237)
10月 242018
默认情况下,开启ssh后,树莓派启动时会弹出一个如下提示:
1 2 3 |
SSH is enabled and the default password for the 'pi' user has not been changed. This is a security risk - please login as the 'pi' user and run Raspberry Pi Configuration to set a new password. |
取消这个提示的方法如下:
方法一:
修改用户pi的默认密码
方法二:
删除sshpwd.sh文件
文件位置可能如下:
/etc/profile.d/sshpasswd.sh
/etc/profile.d/sshpwd.sh
/etc/xdg/lxsession/LXDE-pi/sshpwd.sh
如果不知道是那个,可以看下文件内容,大致如下:
1 2 3 4 5 6 7 8 9 |
#!/bin/bash export TEXTDOMAIN=pprompt . gettext.sh if [ -e /run/sshwarn ] ; then zenity --warning --width=400 --text="$(gettext "SSH is enabled and the default password for the 'pi' user has not been changed.\n\nThis is a security risk - please login as the 'pi' user and run Raspberry Pi Configuration to set a new password.")" fi |
Sorry, the comment form is closed at this time.