CentOS6.5 SSH 远程连接
检查SSH服务是否开启:rpm -qa | grep ssh
openssh-askpass-5.3p1-94.el6.x86_64 libssh2-1.4.2-1.el6.x86_64 openssh-5.3p1-94.el6.x86_64 openssh-server-5.3p1-94.el6.x86_64 openssh-clients-5.3p1-94.el6.x86_64
重新开启SSH服务:service sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
service sshd start 启动服务 | 命令:service sshd stop 停止服务
查看是否启用22端口:netstat -antp |grep sshd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 36492/sshd tcp 0 0 :::22 :::* LISTEN 36492/sshd
远程连接:ssh 127.0.0.1
[root@localhost ~]# ssh admin@127.0.0.1 admin@127.0.0.1's password: [admin@localhost ~]$