当前位置:网站首页>Ssh server configuration file sshd_ Config and operation
Ssh server configuration file sshd_ Config and operation
2022-06-27 12:28:00 【I was naughty when I was a child】
Server's sshd Configuration file for :/etc/sshd/sshd_config
Just introduce the key things
# The note needs to be deleted to reconfigure #( For example, change the port port 2222)
#Port 22 Default port number , Multiple port numbers can be used
#Port 443
#AddressFamily any # Agreement family , IPV4 or IPV6
#ListenAddress 0.0.0.0 # Monitor address
#ListenAddress :: # To specify IPV6 All address formats
# The current version supports key authentication methods
HostKey /etc/ssh/ssh_host_rsa_key #rsa Private key authentication
HostKey /etc/ssh/ssh_host_ecdsa_key #ecdsa Private key authentication
HostKey /etc/ssh/ssh_host_ed25519_key #ed25519 Private key authentication
# Logging # Information about log file data placement and daemon The name of
#SyslogFacility AUTH # Someone used SSH When logging into the system ,SSH Will record information , Recorded in the /var/log/secure
SyslogFacility AUTHPRIV # The default is AUTH To set up .
#LogLevel INFO # The log level
# Authentication: # authentication
#LoginGraceTime 2m # The password input screen appears , How long have you not been successfully connected SSH Server It's broken .
PermitRootLogin yes # Whether to allow administrators to log in remotely
#StrictModes yes # sshd Check the permission data of the user's home directory or related files , When the user's host key After change ,Server Online... Is not accepted
#MaxAuthTries 6 # Maximum number of attempts
#MaxSessions 10 # Maximum number of sessions allowed
#PubkeyAuthentication yes # Whether to allow Public Key
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile .ssh/authorized_keys # When selecting key based authentication , After the client generates a pair of public and private keys , Put the public key in .ssh/authorized_keys,
#AuthorizedPrincipalsFile none # Send welcome message file ,none Means not to send
#AuthorizedKeysCommand none # Specify the script to find the user's public key file for authentication , Call... At the login authentication level , The acceptable parameters are the private key used when the user attempts to log in
#AuthorizedKeysCommandUser nobody # Specify the users to find
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no # Trust ~/.ssh/known_hosts file
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no # Ignore user known_hosts file
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes # Cancel use ~/.ssh/.rhosts As a certification .
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes # Whether password verification is required
#PermitEmptyPasswords no # Whether null password is allowed
PasswordAuthentication yes
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
ChallengeResponseAuthentication no # Is it permissible to question - The reply (challenge-response) authentication .
# The default value is "yes", all login.conf All authentication methods allowed in are supported .
# Kerberos options #Kerberos Authentication server options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
#KerberosUseKuserok yes
# GSSAPI options # Common security services API options
GSSAPIAuthentication yes
GSSAPICleanupCredentials no
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no
#GSSAPIEnablek5users no
# PAM: Pluggable Authentication Modules Pluggable authentication module
UsePAM yes # Use PAM Module Certification
#AllowAgentForwarding yes # Allow forwarding through proxy
#AllowTcpForwarding yes # Allow to pass through TCP forward
#GatewayPorts no # Forwarding path port
X11Forwarding yes #X-window Set up
#X11DisplayOffset 10 #x-window Set up
#X11UseLocalhost yes #x-window Set up
#PermitTTY yes # allow tty
# It is recommended to use pam_motd in /etc/pam.d/sshd instead of PrintMotd,
# as it is more configurable and versatile than the built-in version.
PrintMotd no # Whether to display information after login , Even if you read /etc/motd The contents of the document
#PrintLastLog yes # Display last login information
#TCPKeepAlive yes #SSH Server It will transmit KeepAlive Information to the Client, Make sure you are online
#PermitUserEnvironment no # If one party goes offline ,SSh You can know immediately
#Compression delayed # Compression delay
#ClientAliveInterval 0 # Set the maximum duration of idle login
#ClientAliveCountMax 3 # When no data is received , Maximum direction 3 One client for keepalive testing
#ShowPatchLevel no # Display patch level
#UseDNS no # Turn on DNS analysis
#PidFile /var/run/sshd.pid # Storage ssh Of pid file
#MaxStartups 10:30:100 # The maximum number of unauthenticated connections can be maintained
#PermitTunnel no # allow tun Device forwarding
#ChrootDirectory none # Whether to allow switching directories
#VersionAddendum none # Configure additional versions
# no default banner path
#Banner none # Do not set welcome words
# Accept locale-related environment variables Accept local dependent environment variable types
# Open or not sftp service
# override default of no subsystems
Subsystem sftp /usr/libexec/openssh/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no # Open or not X11 forward
# AllowTcpForwarding no # Whether to allow TCP forward
# PermitTTY no # Whether to allow tty
# ForceCommand cvs server # Limit command
边栏推荐
- 全球最快下载工具 XDM
- i. Construction of mx6ull C language environment
- Interview shock 60: what will cause MySQL index invalidation?
- Thymeleaf的相关知识
- mysql学习1:安装mysql
- Custom multithreading base class threading Event
- 1. Mx6ull startup mode
- 和动态规划的第一次相遇
- MapReduce practical cases (customized sorting, secondary sorting, grouping, zoning)
- 自定义多线程基类threading.Event
猜你喜欢

picocli-入门

全球最快下载工具 XDM

AI for Science:科研范式、开源平台和产业形态

【TcaplusDB知识库】TcaplusDB-tcapsvrmgr工具介绍(二)

In 2021, the global carbon graphite brush revenue is about US $2366million, and it is expected to reach US $2701.8 million in 2028

Histrix工作原理

uni-app开发微信小程序动态渲染页面,动态改变页面组件模块顺序

Topic37——64. Minimum path sum

Private dry goods sharing: how to implement platform in Enterprise Architecture

Peak store app imitation station development play mode explanation source code sharing
随机推荐
Detailed configuration of log4j
build. Gradle configuration
自定义多线程基类threading.Event
DM8:达梦数据库-锁超时
Two usages of enumeration classes
Configuration of YML
动态规划【四】(计数类dp)例题:整数划分
What is the TCP 3-time handshake process?
dried food! What problems will the intelligent management of retail industry encounter? It is enough to understand this article
Mybaitis generator details
Online bidding of Oracle project management system
Basic usage and principle of fork/join framework
Jwas: a Bayesian based GWAS and GS software developed by Julia
Take stock of some easy-to-use and niche markdown editors
alibaba jarslink
Building crud applications in golang
master公式
手把手带你入门 API 开发
JMeter connection DM8
MapReduce practical cases (customized sorting, secondary sorting, grouping, zoning)