ubuntu 安装 openssh-server,xinetd,vmware tools

●安装SSH服务

●判断是否安装ssh服务,通过如下命令:
ps -e|grep ssh

1, sudo apt-get update --->软件的更新地址变了,需要更新本机的sources.list,位于/etc/apt/sources.list 。
2,$ sudo apt-get install openssh-server


●启动服务:

$ sudo /etc/init.d/ssh start

OR:$ sudo /etc/init.d/ssh resart
OR:service ssh restart

●Uninstall openssh-client
$ sudo apt-get remove openssh-client

●Uninstall openssh-server
$ sudo apt-get remove openssh-server

●查询服务启动状态
sshd status
OR:/etc/init.d/sshd status

OR:service sshd status

●ssh服务默认的端口是22,更改端口,使用如下命令打开ssh配置文件:
sudo gedit /etc/ssh/sshd_config


●修改端口号(Port)后,重启ssh服务生效,命令如下:
sudo /etc/init.d/ssh restart

●编辑/etc/ssh/sshd_config,允许root登陆。
①注释掉PermitRootLogin without-password
②增加PermitRootLogin yes

●查看22端口被哪个进程占用
lsof -i:22

●安装 xinetd

$ wget http://www.xinetd.org/xinetd-2.3.14.tar.gz
$ tar -zcvf xinetd-2.3.14.tar.gz
$ cd xinetd-2.3.14
$ ./configure

$ # Disable and/or remove inetd根据情况
$ sudo make install

  

●安装 vmware Tools

1,虚拟机设置,所有光驱,软盘设置为自动检出。
2,进入ubuntu系统,点击菜单栏->VM->安装vmware tools.
3,等待桌面弹出vmtools安装包双击打开,右键提取,选择提取到home目录。
4,提取完成后,在终端中用root权限运行:./vmware-install.pl
5,一直回车,安装成功。

------山的那一边
原文地址:https://www.cnblogs.com/mountain2011/p/6745062.html