首先,确定是否有安装SSH服务
root@ubuntu:/home/ccbipj# ps -e | grep ssh*
如果没有任何显示,则没有安装该服务
其次,安装SSH-server
root@ubuntu:/home/ccbipj# apt-get install openssh-server
接着,更重要的是安装SSH-client
root@ubuntu:/home/ccbipj# apt-get install openssh-client
确认安装SSH服务成功与否
如果,看到sshd表明ssh-server启动了;否则 /etc/init.d/ssh start 如下图
使用SSH的远程登录工具登录访问服务器,注意SSH默认服务端口是22(具体的配置文件通过:root@ubuntu:/etc/ssh# more ssh_config去查看)