Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Notices

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-26-2011, 04:52 AM
night_hawke night_hawke is offline
Registered User
 
Join Date: Mar 2011
Posts: 19
SSH "accept & save"

when i log into an ssh system i get a popup that asks me to accept - accept & save - cancel.

is it possible to suppress this either through the session ini or a script?
Reply With Quote
  #2  
Old 07-26-2011, 09:52 AM
miked's Avatar
miked miked is offline
Registered User
 
Join Date: Feb 2004
Posts: 2,040
Hello,

What you are seeing is the new hostkey notification. It's an SSH security measure which helps protect against a man-in-the-middle attack. Currently there is not an option to suppress this, but I have added your post to our request database and if hostkey notification suppression is added to a future release we will post a follow up message. If you would like direct e-mail notification, please let us know and refer to forum thread 8639.

How are you starting SecureCRT or connecting to the hosts?

For example, are you starting SecureCRT from a script?
__________________
Mike
VanDyke Software
Technical Support
[http://www.vandyke.com/support]
Reply With Quote
  #3  
Old 07-27-2011, 02:15 AM
night_hawke night_hawke is offline
Registered User
 
Join Date: Mar 2011
Posts: 19
Quote:
Originally Posted by miked
Hello,

What you are seeing is the new hostkey notification. It's an SSH security measure which helps protect against a man-in-the-middle attack. Currently there is not an option to suppress this, but I have added your post to our request database and if hostkey notification suppression is added to a future release we will post a follow up message. If you would like direct e-mail notification, please let us know and refer to forum thread 8639.

How are you starting SecureCRT or connecting to the hosts?

For example, are you starting SecureCRT from a script?
i am launching a grouping of sessions after i start SecureCRT. i just have around 350 sessions that are SSH so it gets annoying. i am also looking at supporting 7 more co-workers logging into these same sessions with frequent computer failures (we work outside 90% of the time in Oregon in the rain...).
Reply With Quote
  #4  
Old 07-27-2011, 03:34 PM
miked's Avatar
miked miked is offline
Registered User
 
Join Date: Feb 2004
Posts: 2,040
Have you already accepted and saved the hostkeys for those ~350 hosts, and your goal now is to save your 7+ coworkers the hassle of accepting and saving the hostkeys as well?
__________________
Mike
VanDyke Software
Technical Support
[http://www.vandyke.com/support]
Reply With Quote
  #5  
Old 07-27-2011, 11:15 PM
night_hawke night_hawke is offline
Registered User
 
Join Date: Mar 2011
Posts: 19
Quote:
Originally Posted by miked
Have you already accepted and saved the hostkeys for those ~350 hosts, and your goal now is to save your 7+ coworkers the hassle of accepting and saving the hostkeys as well?
no i haven't. My goal is to avoid having to log into all of them and accept & save manually to build the hostkey files to save them the effort.

I was hoping there would be a simple way to supress it so it wouldn't pop up asking anymore to simplify things. If not then i will just have to log into them all and give everyone the folder they are stored in.
Reply With Quote
  #6  
Old 07-28-2011, 12:31 PM
miked's Avatar
miked miked is offline
Registered User
 
Join Date: Feb 2004
Posts: 2,040
SecureCRT has an /ACCEPTHOSTKEYS command-line option. You could run a script to invoke the command-line for each SSH host.
SecureCRT.exe /SSH2 hostname_or_ip /ACCEPTHOSTKEYS
Are all sessions SSH2?

They are actually already sessions?

Do you have a list of hostnames / IP addresses?
__________________
Mike
VanDyke Software
Technical Support
[http://www.vandyke.com/support]
Reply With Quote
  #7  
Old 07-28-2011, 11:39 PM
night_hawke night_hawke is offline
Registered User
 
Join Date: Mar 2011
Posts: 19
Quote:
Originally Posted by miked
SecureCRT has an /ACCEPTHOSTKEYS command-line option. You could run a script to invoke the command-line for each SSH host.
SecureCRT.exe /SSH2 hostname_or_ip /ACCEPTHOSTKEYS
Are all sessions SSH2?

They are actually already sessions?

Do you have a list of hostnames / IP addresses?
not all devices are SSH2 some are SSH1 and others are telnet.

I have sessions already created for all of them.

yes i also have a list of all hostnames and ip addresses.

I guess i could write a script to launch like you said and auto accept all of them then just give out that file. Nice thats not a bad idea! thanks.
Reply With Quote
  #8  
Old 07-29-2011, 09:51 AM
miked's Avatar
miked miked is offline
Registered User
 
Join Date: Feb 2004
Posts: 2,040
Sounds like a plan! We don't have any example scripts to offer which already accomplish what you're wanting to do, but please let us know if you run into any problems.
__________________
Mike
VanDyke Software
Technical Support
[http://www.vandyke.com/support]
Reply With Quote
  #9  
Old 11-02-2015, 05:29 PM
Maureen's Avatar
Maureen Maureen is offline
VanDyke Product Director
 
Join Date: Feb 2004
Location: Albuquerque, NM
Posts: 1,612
An option to automatically accept host keys has been added to a pre-beta version of SecureCRT. If you'd like to try it, please send email to me at Maureen.Jett@vandyke.com.

Maureen
Reply With Quote
Reply

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 09:11 PM.