V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
ethanlu
V2EX  ›  VPS

弄了一天了,请教一下在 VPS 上搭建 hexo,利用 git 更新遇到的问题

  •  
  •   ethanlu · Sep 10, 2017 · 1188 views
    This topic created in 3158 days ago, the information mentioned may be changed or developed.

    本地 windows 环境+github.io 没问题,想挂在 vps 上试试。看的是这个教程 http://tiktoking.github.io/2016/01/26/hexo/

    git bash 里面 ssh 免密一直都不成功。本地生成的公钥复制粘贴到 authorized_keys 之后,ssh [email protected] 还是提示输入密码。

    困扰了一晚,请懂得帮帮小白

    3 replies    2017-09-10 16:25:18 +08:00
    chentie111
        1
    chentie111  
       Sep 10, 2017   ❤️ 1
    authorized_keys 文件权限问题吧
    ethanlu
        2
    ethanlu  
    OP
       Sep 10, 2017
    @chentie111 #1 我试过给 600,644,都一样
    chentie111
        3
    chentie111  
       Sep 10, 2017
    $ chmod 600 authorized_keys
    $ chmod 700 -R .ssh
    本地 known_hosts 里面相关
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   917 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:28 · PVG 02:28 · LAX 11:28 · JFK 14:28
    ♥ Do have faith in what you're doing.