相关疑难解决方法(0)

如何在Ubuntu上使用ssh-add永久添加私钥?

我有一个受密码保护的私钥,可以通过SSH访问服务器.

我有2台linux(ubuntu 10.04)机器,ssh-add命令的行为在两者中都不同.

在一台机器上,一旦我使用"ssh-add .ssh/identity"并输入我的密码,密钥就会被永久添加,即每次关闭计算机并再次登录时,密钥都已添加.

在另一个中,我必须在每次登录时添加密钥.

据我记忆,我对两者做了同样的事情.唯一的区别是密钥是在永久添加的密钥上创建的.

有谁知道如何永久地将它添加到其他机器?

ssh ubuntu key ssh-agent

442
推荐指数
8
解决办法
36万
查看次数

Gitlab,Permission denied(publickey),版本6-4稳定

权限被拒绝(publickey).致命:无法从远程存储库读取.

请确保您具有正确的访问权限并且存储库存在.

Gitlab版本6-4稳定

root@gitlab:/home/git/gitlab# sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production

System information
System:     Ubuntu 12.04
Current User:   git
Using RVM:  no
Ruby Version:   2.0.0p353
Gem Version:    2.0.14
Bundler Version:1.5.2
Rake Version:   10.1.0

GitLab information
Version:    6.4.3
Revision:   38397db
Directory:  /home/git/gitlab
DB Adapter: mysql2
URL:        http://gitlab.xxx.xxx
HTTP Clone URL: http://gitlab.xxx.xxx/some-project.git
SSH Clone URL:  git@gitlab.xxx.xxx/some-project.git
Using LDAP: no
Using Omniauth: no

GitLab Shell
Version:    1.8.0
Repositories:   /home/git/repositories/
Hooks:      /home/git/gitlab-shell/hooks/
Git:        /usr/bin/git



root@gitlab:/home/git/gitlab# sudo -u git -H bundle exec rake …
Run Code Online (Sandbox Code Playgroud)

ssh gitlab

18
推荐指数
3
解决办法
3万
查看次数

NPM 安装错误本地存储库的权限被拒绝(公钥)

在我的公司 github 中获取本地存储库的权限被拒绝错误,我可以成功克隆它,但是在安装 NPM 时出现错误:

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\bin\git.EXE ls-remote -h -t git@<repo path and name>
npm ERR!
npm ERR! Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
Run Code Online (Sandbox Code Playgroud)

node.js npm-install

15
推荐指数
2
解决办法
2万
查看次数

标签 统计

ssh ×2

gitlab ×1

key ×1

node.js ×1

npm-install ×1

ssh-agent ×1

ubuntu ×1