码迷,mamicode.com
首页 > 移动开发 > 详细

wios设置证书登陆

时间:2018-01-22 13:05:47      阅读:221      评论:0      收藏:0      [点我收藏+]

标签:log   root   lam   ons   密钥登陆   post   登陆   设置   cio   

设置wios为密钥登陆set service ssh allow-root
set service ssh disable-password-authentication          //禁用密码登陆
set service ssh port 22
set system login user wios authentication public-keys rsa key AAAAB3NzaC1yc2EAAAABIwAAAQEAv+DD846quQUmuhYYGXvx0lhHhnq6a6DA4IzxeJv1tswWp40ocCYTBIj+AbE/5Fdh5Oxi5gZfUL8OnsiBoSwWd6azuS3HaGhpPGzmHuc8+7wdR9U+2EwzqEmfSlALycN6egECxKQ/SzdnzXmCiVALAms9J3b3pwofAK2J08BtG/uXGoSoJDPwePWgdUc7TvWztlAvEia0b+O1fCi/CYZjHp+TO8jIkHkAWy/oSCR0qS5inOrCiOlYU2RVwgDMenhEl2c12pRRFBUznpXNyF5IL6QGF+8WNp7vekHrDJkyJ7UvTWtcjHDlqkGVzOAjHgGVD+3FJXKh54hzmcBYfy+vMQ==       //设置rsa的值为密钥
set system login user wios authentication public-keys rsa type ssh-rsa                       //设置rsa的类型为ssh-rsa加密类型

centos设置
Protocol 2
PasswordAuthentication no ##禁用密码登陆
PubkeyAuthentication yes ##使用key登录
AuthorizedKeysFile .ssh/authorized_keys ##key的名字,这个和debian的路径可能不同

 

wios设置证书登陆

标签:log   root   lam   ons   密钥登陆   post   登陆   设置   cio   

原文地址:https://www.cnblogs.com/djoker/p/8328229.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!