Skip to content

[Feature] Request to optimize the local shell interaction logic in the terminal #9617

@EncoTime

Description

@EncoTime

1Panel Version

v2.0.4

Please describe your needs or suggestions for improvements

默认第一个跳出本机的root实在太危险了,有时候忘记切到哪台机器,不小心就会误操作。
例如:我有一台主控机,20台子节点,我想在子节点跑系统重置脚本,有时候忙忘了,切到主节点处理一点东西,忘记切会子节点,就会在主节点上误跑到系统重置脚本,导致环境被破坏。

希望能提供一个终端界面的配置项。
1、进入终端后,让用户自己选择是否跳出本机的shell。
2、主节点和每个子节点拥有单独的配置文件,不会互相影响。(这样可以只开子节点默认跳出本机shell,主节点不跳出本机shell)

Image

需求示意图:
配置界面

Image

若关闭自动弹出本机shell选项,那打开终端后,不会弹出本机shell

Image

Please describe the solution you suggest

No response

Additional Information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions