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
本文介绍如何进行基本的Linux系统配置,包括设置root密码、安装ssh服务及vim编辑器等,并指导如何通过Mac终端连接到Linux系统。
729

被折叠的 条评论
为什么被折叠?



