3
1
0
热心网友
在Debian系统中,您可以通过以下步骤开启SSH服务(Secure Shell):
安装OpenSSH服务器软件包:
启动SSH服务:
使SSH服务在系统启动时自动运行:
安装完成以后,可以通过以下命令看到它们运行的进程:
ps -e |grep ssh#输出: 777? 00:00:00 ssh-agent #表示客户端已运行;
ps -e |grep ssh
41253 ? 00:00:00 sshd #表示服务端已运行;
允许root用户ssh连接我自己的修改为:增加了 root登录的权限。修改/etc/ssh/sshd_config
# 修改前PermitRootLogin without-password# 修改后PermitRootLogin yes然后重启ssh服务修改后以后,我们需要重新启动服务:
#方法一: /etc/init.d/ssh restart
# 方法二:service ssh restart
使用道具 舉報
本版積分規則 發表回覆 回帖並轉播 回帖後跳轉到最後一頁
相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com
Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.