Ubuntu Server 18.04 LTS安装后的事情

开启root 账户ssh

1.  安装 open ssh:

sudo apt-get install openssh-server

修改 root 密码

sudo passwd root

2. 以其他账户登录,通过 sudo nano 修改 /etc/ssh/sshd_config :

xxx@ubuntu:~$ su - root   #切换到root账户

Password:                           #输入第二步修改的root密码

root@ubuntu:~# vi /etc/ssh/sshd_config

3. 找到下面这段代码,注释掉 #PermitRootLogin without-password,添加 PermitRootLogin yes

# Authentication: 

LoginGraceTime 120 

#PermitRootLogin prohibit-password

PermitRootLogin yes 

StrictModes yes

4. 重启 ssh  服务

 

root@ubuntu:~# sudo service ssh restart 

root@ubuntu:~#

安装codeblocks

sudo apt-get install build-essential 
sudo apt install codeblocks
sudo add-apt-repository ppa:damien-moore/codeblocks-stable

sudo apt update

sudo apt install codeblocks codeblocks-contrib

猜你喜欢

转载自blog.csdn.net/zhangtao_heu/article/details/81633642