使用bash脚本将ssh转换为多个ec2实例

时间:2016-03-13 23:18:48

标签: bash ssh terminal terminator

我想使用bash脚本同时打开三个ec2-instances。我正在使用终结器。以下脚本打开三个实例,但只有一个关闭后,其他打开。不是同时的。这意味着,我必须使用key1实例关闭终端,然后打开其他终端。

#Lnav
{
 line-height:30px;
 background-color:#eeeeee;
 height:300px;
 width:100px;
 float:left;
 padding:5px;
 margin:20px;
}

#section
{
 width:850px;
 float:center;
 padding:5px;
}

#section1
{
 float:center;
 padding:5px;
 background-color:lime; 

}

div id="section">
 <div id="section1">
  <h1><London></h1>
   <p>London is the capital city of England. It is the most populous city in the United Kingdom,
with a metropolitan area of over 13 million inhabitants</p>
 </div>
</div>

<div id="Lnav">
 <div id="LnavContents1">
    London<br>
    Chicago<br>
    Bombay<br>
 </div>
 <div id="LnavContents2">
    London<br>
    Chicago<br>
    Bombay<br>
 [![enter image description here][1]][1]</div>

</div>

我希望所有这些都在一个终端视图中的三个子窗口中打开。 此外,在执行脚本时,它给了我这条消息:

terminator -x ssh -i key1 ec2-user@52.x.x.x; 
terminator -x ssh -i key2 ec2-user@52.x.x.x; 
terminator -x ssh -i key3 ec2-user@52.x.x.x;

我带来了这个效果很好的代码。但这是针对xterm的。任何人都可以为终结者提供相同的命令吗?

** (terminator:21982): WARNING **: Binding '<Shift><Control><Alt>a' failed!
Unable to bind hide_window key, another instance/window has it.
<Window object at 0x7ff93c1776e0 (terminatorlib+window+Window at 0x2afa090)> is not in registered window list
/usr/share/terminator/terminatorlib/terminator.py:87: Warning: Attempt to add property GnomeProgram::sm-connect after class was initialised
  self.gnome_program = gnome.init(APP_NAME, APP_VERSION)
/usr/share/terminator/terminatorlib/terminator.py:87: Warning: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised
  self.gnome_program = gnome.init(APP_NAME, APP_VERSION)
/usr/share/terminator/terminatorlib/terminator.py:87: Warning: Attempt to add property GnomeProgram::display after class was initialised
  self.gnome_program = gnome.init(APP_NAME, APP_VERSION)
/usr/share/terminator/terminatorlib/terminator.py:87: Warning: Attempt to add property GnomeProgram::default-icon after class was initialised
  self.gnome_program = gnome.init(APP_NAME, APP_VERSION)

** (terminator:21995): WARNING **: Binding '<Shift><Control><Alt>a' failed!
Unable to bind hide_window key, another instance/window has it.

0 个答案:

没有答案
相关问题