Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/phxin.top/usr/themes/Joe/public/config.php on line 19

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/phxin.top/usr/themes/Joe/public/config.php on line 20

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/phxin.top/usr/themes/Joe/public/config.php on line 21

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/phxin.top/usr/themes/Joe/public/config.php on line 22

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/phxin.top/usr/themes/Joe/public/config.php on line 23
修改vps的ssh端口 - Hello World

修改vps的ssh端口

清歌
2023-11-25 / 0 评论 / 0 阅读 / 正在检测是否收录...

修改vps的ssh端口

  1. 运行以下命令,打开/etc/ssh/sshd_config文件。

    sudo vim /etc/ssh/sshd_config
  2. 按i进入编辑模式,将注释放开,修改为自己需要的端口号。

  3. 按Esc退出编辑,然后输入:wq后按Enter键,保存并退出文件。
  4. 运行以下命令,重启SSH服务。

    sudo service sshd restart

    重启后,即可重新使用root用户及密码远程连接服务器。如果您没有设置或者忘记服务器的密

0

评论 (0)

取消