[英]Where to store public key for ssh on ubuntu?
我有一個 git 控制版本的 nodejs 應用程序和一個用於管理這個應用程序的 git 帳戶?
sudo adduser \
--system \
--shell /bin/bash \
--gecos ‘User managing of git version control’ \
--group \
--disabled-password \
--home /home/git \
git
我應該在哪里存儲authorized_keys文件
/home/git/authorized_keys
或者
/home/user/authorized_keys
用戶是我服務器上的普通用戶
/home/git/.ssh/authorized_keys
檢查此鏈接: http : //git-scm.com/book/ch4-4.html
該目錄應位於:
/home/git/.ssh/authorized_keys
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.