SmartOS
illumos
Project FiFo
Livid
381.69D
527.86D
V2EX  ›  SmartOS

在 Global Zone 里加入 ssh pub key 以实现免密码登录

  •  
  •   Livid ·
    PRO
    · Dec 26, 2012 · 6622 views
    This topic created in 4958 days ago, the information mentioned may be changed or developed.
    mkdir /usbkey/config.inc

    然后将你的 id_rsa.pub 复制为 /usbkey/config.inc/authorized_keys

    然后在 /usbkey/config 里加入下面这行:

    root_authorized_keys_file=authorized_keys

    然后在每次重启时,就会自动把这个文件复制到 root 的 .ssh/ 下了。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2664 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 11:28 · PVG 19:28 · LAX 04:28 · JFK 07:28
    ♥ Do have faith in what you're doing.