●安装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,一直回车,安装成功。

ubuntu 安装 openssh-server,xinetd,vmware tools的更多相关文章

  1. Ubuntu 下安装 OpenSSH Server

    Ubuntu 下安装 OpenSSH Server 是无比轻松的一件事情,需要的命令只有一条: sudo apt-get install openssh-server (查看返回的结果,如果没有出错, ...

  2. VMware下安装Ubuntu18.04时vmware tools安装问题

    在VMware下安装Ubuntu18.04时vmware tools关键步骤: 1.快捷键Ctrl+Alt+T,启动命令框,然后切换到root用户(切换命令为:sudo su,回车然后会提示你输入当前 ...

  3. Ubuntu 安装 SSH server 并配置 SSH 无密码登录

    https://hinine.com/install-and-configure-ssh-server-on-ubuntu/ Ubuntu 安装 SSH server 并配置 SSH 无密码登录 发表 ...

  4. Windows Server 2019安装OpenSSH Server简明教程

    Windows Server 2019安装OpenSSH Server简明教程   Windows Server 2019内置OpenSSH Server组件了.只不过OpenSSH Server默认 ...

  5. VMware12安装虚拟机教程、Ubuntu16.04安装教程(包括vmware tools的安装)

    转自https://jingyan.baidu.com/article/c275f6ba07e269e33d756714.html 方法/步骤 1 虚拟机.Linux操作系统介绍及下载地址 虚拟机VM ...

  6. Ubuntu 安装 SQL Server

    SQL Server现在可以在Linux上运行了!正如微软CEO Satya Nadella说的,"Microsoft Loves Linux",既Windows 10内置的Lin ...

  7. ubuntu安装Percona Server

    Percona Server是mysql数据库的一个衍生版本,在性能,稳定性和可管理性上都有很大的提升,目前淘宝的mysql数据库就是基于Percona Server,请原谅我这么喜欢研究淘宝的技术. ...

  8. 在VMware Workstation 16上安装Windows7虚拟机以及VMware tools安装失败解决方法

    安装VMware Workstation 16 搜素"VMware Workstation下载" 下载 VMware Workstation Pro 下载Windows7系统镜像 ...

  9. Ubuntu安装openssh安装ssh、 免密登录、 创建新用户并免密登录

               一.安装openssh sudo apt-get install openssh-server ssh localhost 二.免密登录 cd ~/.ssh ssh-keygen ...

随机推荐

  1. 兼容安卓和ios实现一键复制内容到剪切板

    实现代码如下: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <m ...

  2. yii2--windows下composer安装

    //文件及存放目录 D:\php\php.exe D:\php\composer.phar //设置path(追加) ; D:\php //创建composer.bat文件 D:\php>ech ...

  3. bzoj3196: Tyvj 1730 二逼平衡树 树套树

    地址:http://www.lydsy.com/JudgeOnline/problem.php?id=3196 题目: 3196: Tyvj 1730 二逼平衡树 Time Limit: 10 Sec ...

  4. python getmtime() 最近修改文件内容的时间

    import time import os def mm(): file_name = '1.txt' file_times_modified = time.localtime(os.path.get ...

  5. 如何制作Windows镜像

    1.在https://msdn.itellyou.cn/网站中下载(使用迅雷)Windows2003R2 中文版ISO 2.使用qemu-img create命令创建一个空的 后缀为.img的文件 q ...

  6. IO(File)

    1. 一个File类的对象,表示了磁盘上的文件或目录 2. File类提供了与平台无关的方法来对磁盘上的文件或目录进行操作 3. File对象可用来获取或处理与磁盘文件相关的信息,如:权限,时间,日期 ...

  7. 关键词提取自动摘要相关开源项目,自动化seo

    关键词提取自动摘要相关开源项目 GitHub - hankcs/HanLP: 自然语言处理 中文分词 词性标注 命名实体识别 依存句法分析 关键词提取 自动摘要 短语提取 拼音 简繁转换https:/ ...

  8. 有趣的js匿名函数写法(function嵌套)

    例子没有什么实际意义,只能做为思路参考 <!DOCTYPE html> <html> <head> <meta charset="UTF-8&quo ...

  9. Vue源码解析之数组变异

    力有不逮的对象 众所周知,在 Vue 中,直接修改对象属性的值无法触发响应式.当你直接修改了对象属性的值,你会发现,只有数据改了,但是页面内容并没有改变. 这是什么原因? 原因在于: Vue 的响应式 ...

  10. 05: jQuery

    目录: jQuery参考网站 W3school 1.1 JQuery作用 1.2 jQuery与DOM比较 与 相互转换 1.3 jQuery选择器 1.4 jQuery筛选与过滤 1.5 jQuer ...