您的位置:首页 > 其它

ubuntu配置SSH远程连接

2017-04-17 11:12 246 查看
             ubuntu系统默认未安装SSH,需要自己手动安装

             安装ssh-server   sudo apt-get install  ssh-server

            安装完成 启动服务       /etc/init.d/ssh start

            启动完成,可以通过
ps -ef | grep ssh命令来查看是否启动成功
root 3877 1 0 20:04 ? 00:00:00 /usr/sbin/sshd -D
root 3880 2871 0 20:04 pts/10 00:00:00 grep --color=auto ssh
出现类似结果 说明启动成功

可以通过ssh 账号@IP地址 测试远程登录

Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-31-generic x86_64)

* Documentation: https://help.ubuntu.com/
175 packages can be updated.
117 updates are security updates.

Your Hardware Enablement Stack (HWE) is supported until April 2019.

出现以上内容说明登录成功
exit退出登录

           
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: