当前位置:网站首页>ssh-server配置文件参数PermitRootLogin介绍
ssh-server配置文件参数PermitRootLogin介绍
2022-06-30 20:39:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。sshd_config是sshd的配置文件,其中 PermitRootLogin可以限定root用户通过ssh的登录方式,如禁止登陆、禁止密码登录、仅允许密钥登陆和开放登陆,以下是对可选项的概括:
参数类别 | 是否允许ssh登陆 | 登录方式 | 交互shell |
|---|---|---|---|
yes | 允许 | 没有限制 | 没有限制 |
without-password | 允许 | 除密码以外 | 没有限制 |
forced-commands-only | 允许 | 仅允许使用密钥 | 仅允许已授权的命令 |
no | 不允许 | N/A | N/A |
以上选项中,yes和no的功能显而易见,只是很粗暴的允许、禁止root用户进行登陆。 without-password在yes的基础上,禁止了root用户使用密码登陆
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/131959.html原文链接:https://javaforall.cn
边栏推荐
猜你喜欢

Testing principle and precautions of biovendor rage ELISA Kit

Huffman Tree (1) Basic Concept and C - language Implementation

PHP require/include 区别

Basic concepts of tree

A complete collection of vulnerability scanning tools. Mom doesn't have to worry that I won't find any more vulnerabilities

Solve the problems of Devops landing in complex environment with various tools with full stack and full function solutions

RP原型资源分享-购物类App

The newly born robot dog can walk by himself after rolling for an hour. The latest achievement of Wu Enda's first disciple

Analysis of breakpoint continuation and download principle

PHP require/include differences
随机推荐
Peking University ACM problems 1005:i think I need a houseboat
MySQL introduction, detailed installation steps and usage | dark horse programmer
哈夫曼树(一)基本概念与C语言实现
Mistakes the project manager should not make
1. Introduction to generating countermeasures network
maya房子建模
C file pointer
动态样式绑定--style 和 class
Document contains & conditional competition
19.04 distributor
Lambda expression principle analysis and learning (June 23, 2022)
Summary of personal work of 21 groups in the first week of summer training
【微服务~Nacos】Nacos之配置中心
数据库 OLAP、OLTP是什么?相同和不同?适用场景
coredns 修改upstream
Web APIs 综合案例-Tab栏切换 丨黑马程序员
谈谈内联函数
Go language identifier and package name specification
亚马逊在阿拉伯联合酋长国限制LGBTQ相关的搜索和产品销售
Lumiprobe copper free click chemical solution