ubuntu修改ssh服务的端口

配置文件是/etc/ssh/sshd_config,添加或者修改Port项
Port 22
Port 8222
Port 8333

可以添加,也可以删除原来的22修改为自己的端口号,最主要的是sshd_config而不是ssh_config,此处犯过错误,所以要牢记。修改完之后
sudo systemctl restart ssh

另外usermod可以修改用户名和用户home目录,需要复习了

ubuntu修改ssh服务的端口》有1个想法

  1. Hi gays, Being a new an affiliate our website, I want to
    discuss this great iphone app, together with you.
    It has helped me a whole lot, hile I used to be studing at college, and so
    i demonstrating this for all college students, and every
    body who may require this. They may be definitely amazing.
    So here is my small advise for all of you, I hope, it will
    be useful for you.

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据