zoukankan      html  css  js  c++  java
  • Mac-配置SecureCRT

    1. Tools - Create Public Key - 

    2. Select Key Type

    3. Create Passphrase

    4.Input  Key Length

    5. Generate Passphrase

    服务器端

    1. Configure  server's  ssh

    $ vi /etc/ssh/sshd_config

    1 Protocol 2
    2 ServerKeyBits 1024
    3 PermitRootLogin no #禁止root登录而已,与本文无关,加上安全些
    4 #以下三行没什么要改的,把默认的#注释去掉就行了
    5 RSAAuthentication yes
    6 PubkeyAuthentication yes
    7 AuthorizedKeysFile .ssh/authorized_keys
    8 PasswordAuthentication no //初次试验的时候最好用yes,否则配置错误的话重启sshd后你就悲剧了
    9 PermitEmptyPasswords no

    2. Convert SecureCRT's public key to OPENSSH key

    $ rz #选择第五步生成的identity.pub
    $ ssh-keygen -i -f Identity.pub >> /root/.ssh/authorized_keys   #生成服务端openssh的key
    $ /etc/init.d/sshd restart    #重启服务

    6. Choose public key

     

    7. 输入第五步记录的路径

  • 相关阅读:
    c++
    zjoi 力
    poj 3415
    [SDOI2014]旅行
    模板测试
    [WC2006]水管局长
    HDU5730
    [NOI2014]魔法森林
    [NOI2012]骑行川藏(未完成)
    [NOI2012]随机数生成器
  • 原文地址:https://www.cnblogs.com/SapphireCastle/p/6395247.html
Copyright © 2011-2022 走看看