V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
SmartOS
illumos
Project FiFo
Livid
272.76D
572.19D
V2EX  ›  SmartOS

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

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