vim /etc/ssh/sshd_config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
Port 2008
Protocol 2
SyslogFacility AUTHPRIV
PermitRootLogin no
StrictModes no
RSAAuthentication
yes
PubkeyAuthentication
yes
AuthorizedKeysFile.
ssh
/authorized_keys
PasswordAuthentication no
ChallengeResponseAuthentication no
GSSAPIAuthentication
yes
GSSAPICleanupCredentials
yes
UsePAM
yes
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
AcceptEnv XMODIFIERS
X11Forwarding
yes
UseDNS no
Subsystemsftp
/usr/libexec/openssh/sftp-server
|
重启 sshd 即可、
本文转自crazy_charles 51CTO博客,原文链接:http://blog.51cto.com/douya/1866326,如需转载请自行联系原作者