SmartOS
illumos
Project FiFo
Livid
288.16D
534.14D
V2EX  ›  SmartOS

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

  •  
  •   Livid ·
    PRO
    · Dec 26, 2012 · 6505 views
    This topic created in 4912 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   ·   959 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 20:13 · PVG 04:13 · LAX 13:13 · JFK 16:13
    ♥ Do have faith in what you're doing.