zoukankan      html  css  js  c++  java
  • 微软Azure连接xshell

      为了方便操作,我们通常使用xshell来作为linux系统的操作工具。

      当虚拟机为Microsoft Azure时如何连接xshell;

      1.打开xshell用户秘钥生成向导

       

     

     一步一步的执行,最后一步要保存好公钥。

    然后打开微软的cloud,登录到本地账户。

    修改/etc/ssh/sshd_config,将

    #PubkeyAuthentication yes

    #AuthorizedKeysFile      .ssh/authorized_keys

    这两条注释取消。

     

    之后进入到 home/用户名/.ssh目录下,如果没有就创建一个,并且创建一个authorized_keys文件,并且将本来生成的公钥拷贝进去。

     

    azure配置完成,再打开xshell新建回话,选择公钥登录。

    要生成root权限访问,修改/etc/ssh/sshd_config文件

    将   #PermitRootLogin yes   注释取消掉

    接着在/root/.ssh下面创建一个authorized_keys文件(如果目录不存在,则创建出来):

    将公钥配置在这个文件下

  • 相关阅读:
    input type="number"
    Creating Directives that Communicate
    angular Creating a Directive that Adds Event Listeners
    angular 自定义指令 link
    cookie
    angular filter
    angular 倒计时
    angular $watch
    angular 自定义指令
    angular 依赖注入
  • 原文地址:https://www.cnblogs.com/wangzheng98/p/11712468.html
Copyright © 2011-2022 走看看