首次安装Ubuntu笔记并用xshell远程连接

1、虚拟机VMware软件中安装Ubuntu系统,安装过程中填写的用户名等账户信息等安装完Ubuntu系统需要重启Ubuntu系统才会进入该用户。

参考:https://blog.csdn.net/flyconley/article/details/96105862

2、xshell连接Ubuntu系统

参考:https://blog.csdn.net/Carry_Q/article/details/79953958

参考:https://www.linuxidc.com/Linux/2017-12/149795.htm

1)打开终端窗口(Ctrl+Alt+T),输入"sudo apt-get update",更新源列表;

2)安装ssh协议:终端中输入"sudo apt-get install openssh-server",安装ssh协议;(有可能出现E:Encountered a section with no Package: header, 错误,解决参考https://blog.csdn.net/dlfxjc2/article/details/78619907,根据链接操作即删除后重新执行sudo apt-get update还是有相同报错,就参考下图,直接删除那个报错的文件,再次执行sudo apt-get update,之后成功;再执行sudo apt-get install openssh-server就可以成功了。还会报错的话,就重启Ubuntu系统后再重新再执行一次)

3)查看ssh服务是否启动:输入"sudo ps -e|grep ssh"

3、设置激活root账户的密码

参考:https://www.cnblogs.com/TonyZhao/p/11156865.html

当前用户下输入"sudo passwd";第一次输入当前用户的密码;

第二个以及第三个输入为root设置的密码,Unix关键字所在行。如果输错了,可以重新sudo passwd重新设置root的密码。

发布了27 篇原创文章 · 获赞 8 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/wuli13141516/article/details/104137383
今日推荐