ubuntu 的一些安装和配置问题

来源:互联网 发布:网络诈骗代办信用卡 编辑:程序博客网 时间:2024/06/09 15:27
(1)ubuntu的root密码是多少
ubuntu默认root密码不启动,root密码找回sudo passwd root 输入你安装时用户的密码,设置root密码。
(2)xshell无法链接ubuntu系统

最后分析原因是都没有真正开启ssh-server服务。

最终成功的方法如下:

sudo apt-get install openssh-server

Ubuntu缺省安装了openssh-client,所以在这里就不安装了,如果你的系统没有安装的话,再用apt-get安装上即可。

 

然后确认sshserver是否启动了:

ps -e |grep ssh

如果只有ssh-agent那ssh-server还没有启动,需要/etc/init.d/ssh start,如果看到sshd那说明ssh-server已经启动了。

ssh-server配置文件位于/ etc/ssh/sshd_config,在这里可以定义SSH的服务端口,默认端口是22,你可以自己定义成其他端口号,如222。然后重启SSH服务:

sudo /etc/init.d/ssh resar

(3)http://forum.ubuntu.org.cn/viewtopic.php?p=2846729 未解决

原创粉丝点击