目前,我们的用户正在遵循以下流程来连接到redshiftdata数据仓库集群。
1. Open putty --> add jumphost
2. putty --> connection --> data ---> "Auto-login username"
3. putty --> connection --> SSH ---> Auth ---> allow agent forwading
4. putty --> connection --> tunnels ---> {provide source port,destination,add button}
5. After above setting open and then run 2 static commands 作为不精通技术的用户,他们不想使用putty并进行上述配置。因此,我想使用一个脚本自动执行此操作,该脚本应采用用户名(step#2),即步骤4中的输入。用户将运行此脚本并创建到仓库的隧道。
需要一些参考或指导,以实现这与批处理脚本。
发布于 2021-07-07 19:04:05
您可以安装OpenSSH并使用它的所有命令。还有一个Powershell SSH模块,它利用了PSGallery提供的.NET:
https://stackoverflow.com/questions/68281513
复制相似问题