我有以下设置:
我的工作计算机运行的是 Ubuntu 18.04,具有以下内容/etc/ssh/sshd_config:
# $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
Port 3022
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress …Run Code Online (Sandbox Code Playgroud)