用戶名:zd
密碼:1111qqqq
設(shè)置root密碼:
root@localhost:~#sudo passwd root
切換為root用戶:
root@localhost:~#su - root
安裝vim、ssh、curl:
root@localhost:~#apt-get install vim
root@localhost:~#apt-get install ssh
root@localhost:~#apt install curl
修改ssh配置文件:
root@localhost:~#vi /etc/ssh/sshd_config
修改如下:
重啟ssh服務(wù):
root@localhost:~#/etc/init.d/ssh restart
配置網(wǎng)絡(luò):
root@localhost:~#vi /etc/network/interfaces
adress 192.168.41.182
netmask 255.255.255.0
gateway 192.168.41.2
重啟網(wǎng)絡(luò):
root@localhost:~#/etc/init.d/networking restart