68

跳板机脚本(粗糙版)-勿忘初心

 6 years ago
source link: http://blog.51cto.com/jinlong/2083827
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
跳板机需求:要求用户登陆到跳板机后,只能执行管理员给定的选项动作,不允许以任何形式中断脚本而到跳板机服务器上执行任何系统命令。需求分析:(1)跳板机服务器需要和其余服务器做好ssh秘钥认证(2)实现传统的远程连接菜单的脚本(3)利用Linux信号防止用户中断信号在跳板机上操作(4)用户登录跳板机后即刻调用脚本,并且只能安装管理员的要求选择[root@lb01~]#useraddjump[root@

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK