question

kmd6076 avatar image
kmd6076 asked ericnute commented

Is there an ssh-agent like option for ssh sessions?

I am upgrading/downgrading systems that require different ssh keys - is there a way to specify multiple keys to try when opening the session so the test can run against either version and not have to have the ssh keys updated between runs?
iTestsession profilessh
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ericnute avatar image ericnute commented ·
Has this issue been resolved?
0 Likes 0 ·
sai_kiran avatar image
sai_kiran answered kmd6076 commented
Actually it is mandatory to specify a key file to start a SSH session profile with SSHV2 authentication using public key. As your session requires different SSH key files, try by place all the files in a directory and in the session profile just give the directory path of the key files under "Key file:" field. Ex: file:/D:/KeyFiles/
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kmd6076 avatar image kmd6076 commented ·
Unfortunately that doesn't work - I get an error indicating an illegal argument when opening the session with a directory set as the key file.
0 Likes 0 ·
sai_kiran avatar image
sai_kiran answered kmd6076 commented
Please use SSH2 Version in iTest SSH session profile, to specify multiple keys we can use iTest SSH2 preferences. Please goto "windows -> Preferences -> General -> Network Connections ->SSH2". ![alt text][1] [1]: /storage/temp/3872-ssh2_preferences.jpg We can save multiple SSH Keys under one folder and browse it into SSH2 home. Also We can browse through multiple tabs present in this configuration options of SSH2. Please specify which operating system are you using. Hope this helps!

1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kmd6076 avatar image kmd6076 commented ·
I added my keys as shown in your screenshot but the session profile still requires a value in the Key File field and if that is not correct for the specified IP address then the connection is rejected. Is there a way to avoid having to put the Key File path in the session profile when using SSHv2?
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.