摘要: 1.修改 /etc/network/interfaces,加入以下内容: vim /etc/network/interfaces auto wlan0 #设置网卡自启动 iface wlan0 inet static #设置网卡使用静态IP address 192.168.0.101 netmask 阅读全文
posted @ 2020-04-04 20:52 >^^< 阅读(1249) 评论(0) 推荐(0)
摘要: 1.如果没有安装SSH,需要先使用以下命令安装 apt-get install ssh 2.编辑ssh配置文件 vim /etc/ssh/sshd_config 在文件的最后加上以下两句 : PasswordAuthentication yes PermitRootLogin yes #允许root 阅读全文
posted @ 2020-04-04 14:52 >^^< 阅读(4981) 评论(0) 推荐(1)
摘要: 1.切换到 root用户操作 su #然后root用户密码 2.编辑 /etc/sudoers 文件 vim /etc/sudoers 在文件中添加一句: username ALL=(ALL) ALL 3.保存文件并退出root用户 #按ESC键进入命令模式之后 !wq #退出root用户 exit 阅读全文
posted @ 2020-04-04 14:40 >^^< 阅读(267) 评论(0) 推荐(1)