ssh: permission denied (publickey)
来源:互联网 发布:数据分析经理岗位职责 编辑:程序博客网 时间:2024/05/04 07:05
ssh出现permission denied (publickey)问题:
修改/etc/ssh/sshd-config文件.
将其中的PermitRootLogin no修改为yes
PubkeyAuthentication yes修改为no
AuthorizedKeysFile .ssh/authorized_keys前面加上#屏蔽掉,
PasswordAuthentication no修改为yes就可以了。
vi /etc/ssh/sshd-config (详细说说sshd-config的配置解释)
Subsystem sftp /usr/libexec/openssh/sftp-server
Port 22
Protocol 2
PermitRootLogin no
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
#CACertificateFile /etc/ssh/ca/ca.cert
PasswordAuthentication no
PermitEmptyPasswords no
PrintMotd no
ChallengeResponseAuthentication no
UseDNS no
ClientAliveInterval 60
Port 22 # SSH 预设使用 22 这个 port,您也可以使用多的 port !亦即重复使用 port 这个设定项目即可!
Protocol 2 # 选择的 SSH 协议版本,可以是 1 也可以是 2 ,如果要同时支持两者,就必须要使用 2,1 这个分隔了
PermitRootLogin no # 是否允许 root 登入!预设是允许的,但是建议设定成 no!
PubkeyAuthentication yes # 是否允许 Public Key
AuthorizedKeysFile .ssh/authorized_keys # 上面这个在设定若要使用不需要密码登入的账号时,那么那个账号的存放档案所在档名!
PasswordAuthentication no # 是否需要密码的验证
PermitEmptyPasswords no # 若上面那一项如果设定为 yes 的话,这一项就最好设定为 no ,这个项目在是否允许以空的密码登入!当然不许!
PrintMotd no # 登入后是否显示出一些信息呢?例如上次登入的时间、地点等
ChallengeResponseAuthentication no # 是否启用其它的 PAM 模块!启用这个模块将会导致 PasswordAuthentication 设定失效!
UseDNS no
ClientAliveInterval 60
- ssh: permission denied (publickey)
- ssh: permission denied (publickey)
- ssh出现 permission denied (publickey)
- ssh localhost “Permission denied (publickey)
- ssh localhost “Permission denied (publickey)
- ssh-key Permission denied (publickey)
- ssh localhost “Permission denied (publickey)
- 关于github的ssh, permission denied(publickey)
- SSH : Permission denied(publickey,gssapi-with-mic)
- SSH error: Permission denied (publickey)解决方法
- SSH Server And “Permission denied (publickey) git
- git ssh——Permission denied (publickey).
- ssh localhost “Permission denied (publickey,denfied)解决方案
- SSH error: Permission denied (publickey)解决方法
- ssh连接错误 Permission denied (publickey)
- ]ssh: permission denied (publickey) ssh出现permission denied (publickey)问题: 修改/etc/ssh/sshd-config文件.
- linux---ssh使用ssh key登录,Permission denied (publickey,password).
- Permission denied (publickey).
- 【木头Cocos2d-x 019】控件篇(第03章)我要战斗之血量条
- 有n个整数,使前面各数顺序向后移m个位置,最后m个数变成最前面m个数。(指针)
- Android中的NotificationManager
- 进程间通信:消息队列
- JDK6.0 Collection
- ssh: permission denied (publickey)
- Oracle中常用的to_Char用法详解(有FMT的详细列表)
- Maven自动部署war到Tomcat6
- java程序员必知的 8大排序
- ndroid -- NotificationManager and Notification学习笔记
- RT3070 在S3C2440平台上的移植
- 数据结构:位图法
- 静态代码检查工具PC-LINT
- linux内核学习