美文网首页
CentOS7.2启用SSHD

CentOS7.2启用SSHD

作者: AdapterN | 来源:发表于2017-05-14 15:57 被阅读274次

1. 检查是否安装SSH服务

$rpm -qa | grep ssh
$yum install openssh-serve

2. 启动SSH服务

$service sshd restart/stop
$netstat -antp | grep sshd
#查看是否启动22端口

3. 设定SSHD服务开机自启

$chkconfig sshd on/off

4. iTerm2连接ssh

$ssh -p22 tuple@127.0.0.1

相关文章

网友评论

      本文标题:CentOS7.2启用SSHD

      本文链接:https://www.haomeiwen.com/subject/niuqxxtx.html