设置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的路径可能不同