比如:
user A on localhost--->remote1, change to superuser B--->remote C, execute command
试着在fabric里写:
sudo('ssh remote c && command', sudo_user=superuser B)
可以登入到remote C服务器里,但直接就卡在那,无法执行剩下的command
有看到资料里写使用gateway,但切换超级用户不知道怎么操作.
请问一下有什么好的实现方式? 谢谢
user A on localhost--->remote1, change to superuser B--->remote C, execute command
试着在fabric里写:
sudo('ssh remote c && command', sudo_user=superuser B)
可以登入到remote C服务器里,但直接就卡在那,无法执行剩下的command
有看到资料里写使用gateway,但切换超级用户不知道怎么操作.
请问一下有什么好的实现方式? 谢谢