SmartOS
illumos
Project FiFo
Livid
272.76D
572.54D
V2EX  ›  SmartOS

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

  •  
  •   Livid ·
    PRO
    · Dec 26, 2012 · 6448 views
    This topic created in 4882 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   ·   3226 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 14:19 · PVG 22:19 · LAX 07:19 · JFK 10:19
    ♥ Do have faith in what you're doing.