[root@u0704-t5-test-shaoew1 ~]$cat /etc/ssh/sshd_config
- #Port 22 监听端口,默认监听22端口 【默认可修改】
- #AddressFamily any IPV4和IPV6协议家族用哪个,any表示二者均有
- #ListenAddress 0.0.0.0 指明监控的地址,0.0.0.0表示本机的所有地址 【默认可修改】
- #ListenAddress :: 指明监听的IPV6的所有地址格式
- # The default requires explicit activation of protocol 1
- #Protocol 2 使用SSH第二版本,centos7默认第一版本已拒绝
- # HostKey for protocol version 1 一版的SSH支持以下一种秘钥形式
- #HostKey /etc/ssh/ssh_host_key
- # HostKeys for protocol version 2 使用第二版本发送秘钥,支持以下四种秘钥认证的存放位置:(centos6只支持rsa和dsa两种)
- HostKey /etc/ssh/ssh_host_rsa_key rsa私钥认证 【默认】
- #HostKey /etc/ssh/ssh_host_dsa_key dsa私钥认证
- HostKey /etc/ssh/ssh_host_ecdsa_key ecdsa私钥认证
- HostKey /etc/ssh/ssh_host_ed25519_key &nbs