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
$rpm -qa | grep ssh
$yum install openssh-serve
$service sshd restart/stop
$netstat -antp | grep sshd
#查看是否启动22端口
$chkconfig sshd on/off
$ssh -p22 tuple@127.0.0.1