赞
踩
#更新软件源
apt-get update
apt-get install ssh
cp /etc/ssh/sshd_config{,.bak}
root@localhost:~# more /etc/ssh/sshd_config| grep -v "^#" |grep -v "^$"
Include /etc/ssh/sshd_config.d/*.conf
Port 22
PermitRootLogin prohibit-password
PasswordAuthentication yes
PermitEmptyPasswords no
ChallengeResponseAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
service sshd start
service ssh status
update-rc.d ssh enable
update-rc.d ssh remove
ll /etc/rc2.d
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。