mac系统安装虚拟机ubuntu14后,如何在mac终端连接ubuntu?

来源:互联网 发布:百度人工智能上海招聘 编辑:程序博客网 时间:2024/06/18 17:17

1.设置root密码:sudo passwd root ,输入密码后,切换root : sudo root

2.ufw status 查看防火墙是否关闭(inactive即为关闭), 关闭命令:ufw disable

3.安装ssh服务:apt-get install -y openssh-server

4.安装vim编辑器:apt-get install vim

5.修改/etc/ssh/sshd_config文件中 PermitRootLogin without-password   改为  PermitRootLogin yes  

   命令: vim /etc/ssh/sshd_config   i编辑模式,esc退出编辑模式,:wq保存退出

6.ifconfig查看IP地址

7.Mac终端中连接linux:ssh root@xx.xx.xx.xx



阅读全文
0 0