ubuntu配置SSH远程连接

来源:互联网 发布:淘宝的返利机器人 编辑:程序博客网 时间:2024/06/06 09:56


             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 -Droot       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退出登录


           

0 0
原创粉丝点击