Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting


Thread Tools Rate Thread Display Modes
Old 01-23-2013, 10:41 AM
PRZ PRZ is offline
Registered User
Join Date: Jan 2013
Posts: 4
Accepting Certificates in a script during SSH connect

I was wondering if it is possible to have the host certificate automatically accepted when opening an SSH connection with a script. I realize that if I save the certificate on first connection I am not asked to accept it again, but the volume of devices I am dealing with and the need for the script to be portable make any sort of manual process impossible...

Reply With Quote
Old 01-23-2013, 11:03 AM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,636

As long as you understand the security implications ...

You would add the /ACCEPTHOSTKEYS option to your connection string.

Also see the SecureCRT help topic Using the Software / Command-Line Options / Table of Protocol-Specific Command-Line Options.

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote
Old 01-23-2013, 11:19 AM
PRZ PRZ is offline
Registered User
Join Date: Jan 2013
Posts: 4
Thanks! I was reading the scripting guides, which didn't mention all the connection options. And yes, I am aware of the implications - doom should be minimal.
Reply With Quote

connect , ssh

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 06:50 AM.