第一次装Redhat为了装一个vmtools,一顿狂搜,然后运行发现没有g++,然后让虚拟机上网,折腾了一晚上也没搞定,痛苦....
今天试了下Ubuntu,简直非一般的赶脚,很快装完后,自动就能联网了。
没有g++,直接提示你运行什么命令...感动的痛哭流涕。
装好好通过ssh登陆,xshell连不上,运行命令:
1. 使用apt命令安装openssh server
$ sudo apt-get install openssh-server
此时不能通过root账户连接。
继续使用Ubuntu,想切换为root用户,但总是su: Authentication failure,好吧,网上搜了一下
$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
之后就,没问题了。