Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting


Thread Tools Rate Thread Display Modes
Old 10-25-2007, 10:52 AM
andyp andyp is offline
Registered User
Join Date: Oct 2007
Posts: 1
Any way to automatically accept host key using SSH in scripts?

I'm writing a script to process a list of many hundreds of ip addresses where it will ssh into each one and issue a series of commands.

the problem is that unless I've been into these devices before, I must answer the "accept host key" prompt for each device clicking the "accept & save" box each time.

Understanding the risks of accepting keys blindly, I still need to do this for hundreds maybe thousands of devices on our internal network. I would like to have a command line option to "automatically accept and save ssh host key"

telnet is not an option

can anyone help me?
Reply With Quote
Old 10-25-2007, 04:01 PM
kbarnette kbarnette is offline
VanDyke Technical Support
Join Date: Aug 2007
Posts: 587
If you are running SecureCRT 5.2 or newer, you will want to use the /ACCEPTHOSTKEYS argument when you launch securecrt.exe.

If you add this command-line option, are you able to accept the host keys as you described?
Reply With Quote

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:55 AM.