1.vim /etc/ssh/sshd_config

#Port 22(将此行注释)
Port 12345(添加此行)

#X11Forwarding no(将此行注释)

X11Forwarding yes(添加此行)

2.重新启动sshd

/etc/init.d/sshd restart