xdays

ssh服务器

​1. 安装
\$sudo apt-get install openssh-server

​2. 设置开机启动
安装sysvconfig,设置ssh开机启动

​3. 配置文件详解
#cat /etc/ssh/sshd_config

# Package generated configuration file
# See the sshd(8) manpage for details

# What ports, IPs and protocols we listen for
Port 22 #开放端口
# Use these options to restrict which interfaces/protocols sshd will bind to ...