mirror of
https://github.com/certimate-go/certimate.git
synced 2026-04-26 05:05:56 +03:00
[GH-ISSUE #49] [SSH] 请支持SSH跳板用户 #38
Labels
No labels
announcement
backlog
bug
declined
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
invalid
pull-request
question
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/certimate#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wsy on GitHub (Sep 18, 2024).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/49
功能描述
使用跳板用户(比如
user)将证书文件传输到中间文件夹(因为目标文件夹只有root可以写入),再用跳板用户建立ssh连接,并使用
su命令切换到root用户。最后使用root权限把相关文件移到目标文件夹中。
动机
由于安全设置,我的Ubuntu机器,不支持直接使用root用户登录(有相应安全设置),需要使用我自己的用户(例
ubuntu)登录上去,再用sudo su - root命令切换到root用户。其他信息
我以前传文件,都是这样操作的:
@usual2970 commented on GitHub (Sep 19, 2024):
感谢反馈~可能没明白你的意思
现在是支持除了 root 外的其它用户的,root只是方便用户填写提供的默认值
@wsy commented on GitHub (Sep 19, 2024):
举例子:
@usual2970 commented on GitHub (Sep 19, 2024):
用当前的能力应该是可以实现的吧:
假设:
有两个用户:wsy,root
目标文件夹:/wsy/ssl,/root/ssl
@wsy commented on GitHub (Sep 20, 2024):
确实,思维局限在了su上面了,忘记sudo了