Hi
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).
<Servers>
<Server name="ec2" configuration="" resource="cs://x.xxx.xx.xxx:11111">
<CommandStartup>
<Options>
<Option name="SSH_USER" label="SSH Username" save="true">
<String default="ubuntu"/>
</Option>
<Option name="SSH_EXE" label="SSH Executable" save="true">
<File default="/usr/bin/ssh"/>
</Option>
<Option name="SSH_KEY" label="SSH key" save="true">
<File default="/home/mls5/.ssh/mykey.pem"/>
</Option>
</Options>
<Command exec="$SSH_EXE$" delay="5" timeout="0">
<Arguments>
<Argument value="-l"/>
<Argument value="$SSH_USER$"/>
<Argument value="-i"/>
<Argument value="$SSH_KEY$"/>
</Arguments>
</Command>
</CommandStartup>
</Server>
</Servers>
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
Ashkan
mwestphal
(Mathieu Westphal (Kitware))
May 13, 2020, 10:18am
2
ParaView now support native ssh. See here :
Since mr and mr , ParaView master now has a support for ssh, which includes port forwarding.
In order to use it, you will need first to install a terminal and an ssh tool.
Terminals are available by default on Windows, Mac and virtually on all linux distribution.
Ssh is available by default on mac, on all package manager on all linux distribution.
On windows ssh is now available by default with the Windows 10 Spring update but we recommend installing Putty as support for rc connection is bett…
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.
Thanks
mwestphal
(Mathieu Westphal (Kitware))
May 14, 2020, 4:22am
4
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 ubuntu@xx.xxx.xx.xx -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.
mwestphal
(Mathieu Westphal (Kitware))
May 14, 2020, 5:45am
6
I’m afraid this usecase was not implemented sadly. Feel free to open a feature request on our gitlab :
https://gitlab.kitware.com/paraview/paraview/issues
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.