Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Secure Shell

Reply
 
Thread Tools Display Modes
  #1  
Old 11-30-2016, 06:48 AM
umbongo umbongo is offline
Registered User
 
Join Date: Oct 2015
Posts: 13
Problems with SSH key in a portable installation

I have a portable SecureCRT that has problems with the locations of my SSH keys. The key is stored in the config directory and the configuration shows the relative path of "./key.key". However when reopening the application they key is not recognised. When I edit the configuration of a host and attempt to re-point it to the cert file it completes the full path, but the fingerprint then shows. If I remove the absolute path and replace with the relative path again and click OK the connection then works as expected.

Running on Version 8.0.2
Reply With Quote
  #2  
Old 11-30-2016, 10:10 AM
jjh jjh is offline
VanDyke Customer Support
 
Join Date: Feb 2004
Posts: 799
Hi umbongo

If SecureCRT is looking for a .key file, that would be a
keymap file that was created using the keymap editor. If
you open your Session Options to the Emulation category, you
can enable the "Select an alternate keyboard emulation
setting, then choose "Custom" from the dropdown list. Then
you can put the path to the .key file you want to use in the
entry box to the right. It sounds like that is the path you
need to change to be the relative path to your .key file.

Is this the problem you are encountering?

If not, would you be able to provide a screenshot of the
error message you are seeing?

We may need some more information about your Config that you
might not want to post on a public forum. If that becomes
the case, it might be better for you to contact us at
support@vandyke.com.

Thanks

JJH
Reply With Quote
  #3  
Old 12-15-2016, 08:52 AM
umbongo umbongo is offline
Registered User
 
Join Date: Oct 2015
Posts: 13
Sorry for taking so long to come back to you. For some reason I didn't realise I hadn't set an email alert.

The problem you have interpreted is not the problem I have. I have attached some screenshots that should help describe the issue more clearly.

Pic 1 shows the problem directly.


Pic 2 shows the root cause of the problem - the key can't be read.


Pic 3 show after I click the 'open' button and then just click OK (without changing the path or name, so it does appear to recognise the relative path correctly).


Pic 4 show after I correct the path again to be relative.


If I attempt the connection after pic 4 the connection then succeeds. This is rather annoying as I have to keep the path relative as it is a portable installation.

Does that make the problem description more readable?
Attached Images
File Type: png 1-key failed.png (6.6 KB, 502 views)
File Type: png 2-key props before.png (16.4 KB, 488 views)
File Type: png 3-key props after reopening.png (20.6 KB, 497 views)
File Type: png 4-key props after fixing path.png (19.9 KB, 526 views)

Last edited by jdev; 12-15-2016 at 09:16 AM. Reason: Add in-line picture links for easier readability
Reply With Quote
  #4  
Old 12-15-2016, 12:06 PM
jjh jjh is offline
VanDyke Customer Support
 
Join Date: Feb 2004
Posts: 799
Hi umbongo.

Thanks for providing the screenshots. Since you are using a
"portable" install of SecureCRT and you already have your
key stored in the Config directory, you can edit the SSH2.ini
to use the {VDS_CONFIG_PATH} template value. You would need
to change the following line in the .ini file to look like
this:

S:"Identity Filename V2"=${VDS_CONFIG_PATH}\phil.key

Does this work for you?

JJH
Reply With Quote
  #5  
Old 12-15-2016, 04:24 PM
umbongo umbongo is offline
Registered User
 
Join Date: Oct 2015
Posts: 13
Yes, that works.

However when I view the config I notice that the path resolves to the absolute path. Am I at risk of overwriting the variable with an absolute file location at some point in the future?
Reply With Quote
  #6  
Old 12-15-2016, 04:56 PM
jjh jjh is offline
VanDyke Customer Support
 
Join Date: Feb 2004
Posts: 799
Hi umbongo.

That shouldn't happen. If you plug your USB stick into a
different computer that uses a different drive letter, it
should make sense on that computer as well.

JJH
Reply With Quote
Reply

Tags
certificate , ssh


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 09:56 AM.