SmartOS
illumos
Project FiFo
Livid
288.98D
531.68D
V2EX  ›  SmartOS

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

  •  
  •   Livid ·
    PRO
    · Dec 26, 2012 · 6514 views
    This topic created in 4916 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   ·   2913 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 13:08 · PVG 21:08 · LAX 06:08 · JFK 09:08
    ♥ Do have faith in what you're doing.