Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
ssh怎么配置免密码?(已解决)
Experiences and Insight
416
views ·
3
replies ·
To
floor
Go
ghostry
deepin
2019-10-11 00:01
Author
本帖最后由 ghostry 于 2019-11-17 23:41 编辑
估计是系统从旧版本升级上来的问题,新电脑新安装的15.11,放了key就直接能用,什么都不用配置.
这个旧的重装下算了,懒得解决这种奇怪问题.
--------------------------------
我已经配置了
/etc/ssh/sshd_config
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
在主目录.ssh/authorized_keys2添加了公钥
也尝试了在.ssh/authorized_keys添加.
但是都不行.还是要输入密码.
Reply
Like 0
Favorite
View the author
All Replies
funtoo
deepin
2019-10-11 00:15
#1
sshd要在服务端配置,公钥也放在服务端。
客户端保存的是私钥,公钥和私钥的权限都需要设置为600。
Reply
Like 0
View the author
走钢丝
deepin
2019-10-11 00:17
#2
本地应该是需要私钥吧?另外文件中还需要填写账号信息。。不过这种网上教程应该是很多的。
参考:
https://www.cnblogs.com/qingguo/p/5686247.html
Reply
Like 0
View the author
ghostry
deepin
2019-10-11 03:54
#3
私钥公钥什么的都有放好,我几台Ubuntu都在用的。就这个deepin不行。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
What is the purpose of UOS AI?
Cannot upgrade "Deepin 25.0.10"
chrome browser
Feature Request: Adding an option for a "Floating Dock" mode in DDE
[Feature Request] Drop-down grid panel for window snap layouts
Popular Events
More
估计是系统从旧版本升级上来的问题,新电脑新安装的15.11,放了key就直接能用,什么都不用配置.
这个旧的重装下算了,懒得解决这种奇怪问题.
--------------------------------
我已经配置了
/etc/ssh/sshd_config
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
在主目录.ssh/authorized_keys2添加了公钥
也尝试了在.ssh/authorized_keys添加.
但是都不行.还是要输入密码.