小编Ala*_*iah的帖子

树莓派 SSH 访问被拒绝

我正在尝试使用 Windows 中的PuTTY登录我的 Raspberry Pi 。然而,每当我尝试使用默认用户名和密码( pi* 和raspberry)登录我的 Raspberry Pi 时,它都会显示Access Denied

我创建了wpa_supplicant.conf文件和 ssh 文件。这是它的第一次启动。我正在使用最新版本的 Raspbian Lite 操作系统。

raspberry-pi raspberry-pi4

43
推荐指数
2
解决办法
6万
查看次数

Gmail SMTP 登录身份验证失败(已更新)

尝试使用 SMTP 登录 Gmail 帐户时,出现以下错误消息:

SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted.
Run Code Online (Sandbox Code Playgroud)

导致错误的代码:

import smtplib

server = smtplib.SMTP("smtp.gmail.com", 587)
server.starttls()
server.login("sending@gmail.com", "your_password")
message = "TEST"

server.sendmail("sending@gmail.com", "receiving@gmail.com", message)
server.quit()
Run Code Online (Sandbox Code Playgroud)

python gmail smtp smtpclient

4
推荐指数
1
解决办法
5176
查看次数

标签 统计

gmail ×1

python ×1

raspberry-pi ×1

raspberry-pi4 ×1

smtp ×1

smtpclient ×1