connect to server on AWS EC2

I want to connect to pvserver on AWS EC2 instance. I created a pvsc configuration as follows (note I need to use ssh key file).

  <Server name="ec2" configuration="" resource="cs://">
        <Option name="SSH_USER" label="SSH Username" save="true">
          <String default="ubuntu"/>
        <Option name="SSH_EXE" label="SSH Executable" save="true">
          <File default="/usr/bin/ssh"/>
        <Option name="SSH_KEY" label="SSH key" save="true">
          <File default="/home/mls5/.ssh/mykey.pem"/>
      <Command exec="$SSH_EXE$" delay="5" timeout="0">
          <Argument value="-l"/>
          <Argument value="$SSH_USER$"/>
          <Argument value="-i"/>
          <Argument value="$SSH_KEY$"/>

but I get the “connection aborted” with the following error

usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-E log_file] [-e escape_char]
[-F configfile] [-I pkcs11] [-i identity_file]
[-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec]
[-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address]
[-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
[user@]hostname [command]

Command aborted.

Any comments/help is really appreciated

ParaView now support native ssh. See here :

Thanks for reply Mat.
Can you explain how I can tailor the pvsc file for my problem. I tried to also follow the simple server startup in the link you sent and it pops up the terminal and I entered “-l ubuntu -i ~/.ssh/mykey.pem” and pressed enter but did not work.
I sure I am doing it correctly and would appreciate your input.

What are you expecting this to do ?
The terminal opening should only be needed to enter your password.

I am using ssh key to access the server and am not using any password. Basically, “ssh -i ~/.ssh/mykey.pem” is how I connect to the server (without password) from linux terminal. I need to make paraview to connect in the same way to the server.

I’m afraid this usecase was not implemented sadly. Feel free to open a feature request on our gitlab :

In the meantime, you will have to fix your inital .pvsc file.

A good debug tools is to set SSH_EXE to /usr/bin/echo in order to check the args.