linux 安装ssh ubuntu 16.04

版权声明:转载请注明出处,谢谢 https://blog.csdn.net/guoqing2016/article/details/88798913

安装ssh

root@ubuntu: apt-get install openssh-server

安装ssh
安装后需要启动ssh

root@ubuntu: /etc/init.d/ssh restart

启动ssh
允许root登录需要修改配置信息

root@ubuntu: vi /etc/ssh/sshd_config

修改ssh配置
修改为:
修改ssh配置
修改保存后再重启ssh

root@ubuntu: /etc/init.d/ssh restart 

重启ssh
重启后就可以通过ifconfig查询IP地址并用软件连接了

root@ubuntu: ifconfig

查看ip地址
登录虚拟机
连接虚拟机

猜你喜欢

转载自blog.csdn.net/guoqing2016/article/details/88798913