刘总的笔记小站

生活常识,娱乐搞笑,编程技巧,智能家居,深度学习,网络神经,数据挖掘

openssh server 配置

一,安装

sudo apt update && sudo apt upgrade
sudo apt install openssh-server



二,配置

vim /etc/ssh/sshd_config


Port 22
ListenAddress 0.0.0.0
PermitRootLogin yes
PubkeyAuthentication no
PasswordAuthentication yes
UseLogin yes


三,运行

1,命令行

" /usr/sbin/sshd -d" " /usr/sbin/sshd -D -d"


2,服务管理

systemctl status ssh.service  
systemctl status sshd.service

发表评论:

控制面板
您好,欢迎到访网站!
  查看权限
搜索
«   2024年9月   »
1
2345678
9101112131415
16171819202122
23242526272829
30
网站分类
最新留言
文章归档
网站收藏
友情链接
图标汇集
Powered by Z-BlogPHP

  • Copyright ©2021 @liuzong All rights reserved.
  • 陕ICP备17016542号