Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于登录linux服务器本地私钥注册问题 #3349

Open
kun376361 opened this issue Oct 16, 2019 · 1 comment

Comments

@kun376361
Copy link

@kun376361 kun376361 commented Oct 16, 2019

[简述你的问题]
登录到linux服务器后能否带上本地私钥,便于在服务器上pull以及push代码库。

问题复现步骤
  1. 现在通过jumpserver登录服务器后,在linux服务器上执行ssh-add -l是没有注册私钥的。这样就没有办法pull或者push服务器上代码库,代码库权限通过key管理。同一个服务器账号会有多个人登录,各自使用本地电脑生成的key,不在服务器公共账号生成key。

  2. 通过命令行登录ssh admin@192.168.1.100 -A,带上-A参数在服务器执行ssh-add -l可以看到带上本地注册的key到服务器,这样就能够操作代码库。

其他

[注:] 完成后请关闭 issue

@wojiushixiaobai

This comment has been minimized.

Copy link
Collaborator

@wojiushixiaobai wojiushixiaobai commented Oct 23, 2019

@kun376361 请自行添加,这样的操作可能会产生其他问题。
一般线上服务器拉代码应该有单独设置的共用账户才对。
个人测试代码,请在个人资产上面进行设置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.