我在我的ubuntu-server安装的/etc/ssh/ssh_config为SSH定义了一个自定义的端口,并且在重新启动服务器之后它仍然接受端口22上的SSH。
还有什么我需要做的比….
Host * PermitRootLogin no Port 6685 Protocol 2,1 SendEnv LANG LC_* HashKnownHosts yes GSSAPIAuthentication yes GSSAPIDelegateCredentials no
您正在查找的configuration是/etc/ssh/sshd_config 。 ssh_config文件是针对ssh客户端的。