zoukankan      html  css  js  c++  java
  • ubuntu安装ssh

    https://jingyan.baidu.com/article/9c69d48fb9fd7b13c8024e6b.html

    更新源列表

    打开"终端窗口",输入"sudo apt-get update"-->回车-->"输入当前登录用户的管理员密码"-->回车,就可以了。

    安装ssh

    打开"终端窗口",输入"sudo apt-get install openssh-server"-->回车-->输入"y"-->回车-->安装完成。

    查看ssh服务是否启动

    打开"终端窗口",输入"sudo ps -e |grep ssh"-->回车-->有sshd,说明ssh服务已经启动,如果没有启动,输入"sudo service ssh start"-->回车-->ssh服务就会启动。

    后面步骤非必须,未试

    使用gedit修改配置文件"/etc/ssh/sshd_config"

    打开"终端窗口",输入"sudo gedit /etc/ssh/sshd_config"-->回车-->把配置文件中的"PermitRootLogin without-password"加一个"#"号,把它注释掉-->再增加一句"PermitRootLogin yes"-->保存,修改成功。

    查看Ubuntu 14.04的IP地址

    打开"终端窗口",输入"sudo ifconfig"-->回车-->就可以查看到IP地址。

  • 相关阅读:
    Python_反射
    Python_面向对象_类2
    Python_面向对象_类1
    Python_logging模块
    Python_子进程管理subprocess模块
    Python_python内置加密模块
    Python_configparser模块
    Python_xml
    Python_shelve模块
    Python_shutil模块
  • 原文地址:https://www.cnblogs.com/xqnq2007/p/7045828.html
Copyright © 2011-2022 走看看