Sign In Help
Schneider Electric
HelpSign In
Schneider Electric Exchange
  • Home
  • Collaborate
  • Develop
  • Shop
Home Collaborate Develop Shop Log in or Register Help

Invite a Co-worker

Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel

Invitation Sent

Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
  • Home
  • Collaborate
  • Exchange Community
  • :
  • EcoStruxure IT
  • :
  • EcoStruxure IT forum
  • :
  • Re: NetBotz 250 : SSH Hostkey and Public/Private keys
Community Menu
  • Forums
    • By Topic
        • EcoStruxure IT
          • EcoStruxure IT forum
        • Industrial Automation
          • Industry Automation and Control Forum
          • Alliance System Integrators Forum
          • Machine Solutions in the Digital Transformation
          • EcoStruxure Automation Expert / IEC 61499 Forum
          • Industrial Edge Computing Forum
          • Level and Pressure Instrumentation Forum
          • Modicon User Group
          • PLC Club Indonesia
          • SEE Automation Club Forum
          • Fabrika ve Makina Otomasyonu Çözümleri
          • Форум по промышленной автоматизации СНГ
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Forum
          • SCADA and Telemetry Devices Forum
        • Power Distribution IEC
          • Power Distribution and Digital
          • Power Standards & Regulations
          • Paneelbouw & Energie Distributie
        • Power Distribution Softwares
          • EcoStruxure Power Design Forum
          • SEE Electrical Building+ Forum
          • LayoutFAST User Group Forum
        • Solutions for your Business
          • Solutions for Food & Beverage Forum
          • Solutions for Healthcare Forum
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Forum
        • Healthcare
          • Solutions for Healthcare Forum
      • EcoStruxure IT
        • EcoStruxure IT forum
      • Industrial Automation
        • Industry Automation and Control Forum
        • Alliance System Integrators Forum
        • Machine Solutions in the Digital Transformation
        • EcoStruxure Automation Expert / IEC 61499 Forum
        • Industrial Edge Computing Forum
        • Level and Pressure Instrumentation Forum
        • Modicon User Group
        • PLC Club Indonesia
        • SEE Automation Club Forum
        • Fabrika ve Makina Otomasyonu Çözümleri
        • Форум по промышленной автоматизации СНГ
      • SCADA & Telemetry Solutions
        • Geo SCADA Expert Forum
        • SCADA and Telemetry Devices Forum
      • Power Distribution IEC
        • Power Distribution and Digital
        • Power Standards & Regulations
        • Paneelbouw & Energie Distributie
      • Power Distribution Softwares
        • EcoStruxure Power Design Forum
        • SEE Electrical Building+ Forum
        • LayoutFAST User Group Forum
      • Solutions for your Business
        • Solutions for Food & Beverage Forum
        • Solutions for Healthcare Forum
      • Food & Beverage
        • Solutions for Food & Beverage Forum
      • Healthcare
        • Solutions for Healthcare Forum
  • Blogs
    • By Topic
        • Industrial Automation
          • Industrial Edge Computing Blog
          • Industry 4.0 Blog
          • Industrie du Futur France
        • SCADA & Telemetry Solutions
          • SCADA and Telemetry Blog
        • Power Distribution IEC
          • Power Events & Webinars
          • Power Foundations Blog
        • Power Distribution NEMA
          • NEMA Power Foundations Blog
        • Power Distribution Softwares
          • EcoStruxure Power Design Blog
          • SEE Electrical Building+ Blog
        • Solutions for your Business
          • Solutions for Food & Beverage Blog
          • Solutions for Healthcare Blog
          • Solutions for Retail Blog
        • Community experts & publishers
          • Publishers Community
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Blog
        • Healthcare
          • Solutions for Healthcare Blog
        • Retail
          • Solutions for Retail Blog
      • Industrial Automation
        • Industrial Edge Computing Blog
        • Industry 4.0 Blog
        • Industrie du Futur France
      • SCADA & Telemetry Solutions
        • SCADA and Telemetry Blog
      • Power Distribution IEC
        • Power Events & Webinars
        • Power Foundations Blog
      • Power Distribution NEMA
        • NEMA Power Foundations Blog
      • Power Distribution Softwares
        • EcoStruxure Power Design Blog
        • SEE Electrical Building+ Blog
      • Solutions for your Business
        • Solutions for Food & Beverage Blog
        • Solutions for Healthcare Blog
        • Solutions for Retail Blog
      • Community experts & publishers
        • Publishers Community
      • Food & Beverage
        • Solutions for Food & Beverage Blog
      • Healthcare
        • Solutions for Healthcare Blog
      • Retail
        • Solutions for Retail Blog
  • Ideas
        • Industrial Automation
          • Modicon Ideas & new features
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Ideas
          • SCADA and Telemetry Devices Ideas
  • Knowledge Center
    • Building Automation Knowledge Base
    • Industrial Automation How-to videos
    • Ask Exchange
    • Digital E-books
    • Success Stories Corner
    • Power Talks
  • Events & Webinars
  • Support
    • User Guide
    • Leaderboard
    • Releases Notes
How can we help?
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
49630members
Join Now
243026posts
Join Now

NetBotz 250 : SSH Hostkey and Public/Private keys

Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Back to EcoStruxure IT forum
rf2019
Lieutenant JG rf2019
Lieutenant JG
‎2020-07-16 09:58 AM
0 Likes
7
943
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-07-16 09:58 AM

NetBotz 250 : SSH Hostkey and Public/Private keys

Hello,

 

I am working on security features on the NetBotz 250.

I would like to know if the ssh hostkey, generated by the Security Wizard, is the private key, the public key or both keys of the Rack Monitor NetBotz 250 ?

 

Thank you in advance for the attention you may pay to my question.

 

Raphaêl

Labels
  • Building Operations
  • Data Center Operation
  • DDF
  • NetBotz
Tags (2)
  • Tags:
  • english
  • NetBotz 250
Share
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
7 Replies 7
GavanOB
Lieutenant GavanOB Lieutenant
Lieutenant
‎2020-07-17 12:38 AM
0 Likes
6
928
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-07-17 12:38 AM

Re: NetBotz 250 : SSH Hostkey and Public/Private keys

Hi rf2019,

 

It's both, Security Wizard will generate a .P15 file which as far as I know is unique to APC devices. .P15 file can contain just the private key or they can contain both similar to a .PFX file.

 

I assume you mean the GUI version of Security Wizard, if so it will also give you the thumbprint that can be used for host verification to prevent "man-in-the-middle" attacks.

 

-Gavan  

APC by Schneider Electric
Tags (1)
  • Tags:
  • english
Share
Reply
rf2019
Lieutenant JG rf2019
Lieutenant JG
‎2020-07-17 01:33 AM
0 Likes
5
926
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-07-17 01:33 AM

Re: NetBotz 250 : SSH Hostkey and Public/Private keys

Hi Gavan,

 

Thank you for your reply.

So if I understand correctly, the .p15 file has merged within the public and private ssh keys.

 

Is there any way to send to the Rack Monitor the public and the private ssh keys in different files ?

 

Raphaël

Tags (1)
  • Tags:
  • english
Share
Reply
GavanOB
Lieutenant GavanOB Lieutenant
Lieutenant
‎2020-07-17 02:00 AM
0 Likes
4
921
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-07-17 02:00 AM

Re: NetBotz 250 : SSH Hostkey and Public/Private keys

Hi rf2019,

 

Can I just clarify, you are talking about the SSH host key and you talking about using public key private key authentication?

 

For an SSH host key there isn't really public and private keys, there is a host key and a thumbprint which can't be separated.

 

The 250 doesn't support public/private key authentication, you need o use password based authentication. 

 

-Gavan

APC by Schneider Electric
Tags (1)
  • Tags:
  • english
Share
Reply
rf2019
Lieutenant JG rf2019
Lieutenant JG
‎2020-07-17 02:21 AM
0 Likes
3
919
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-07-17 02:21 AM

Re: NetBotz 250 : SSH Hostkey and Public/Private keys

Hi Gavan

 

I think I start to better understand how it works.

But if the Rack Monitor is the SSH server, does the client connecting to it (let's say a PC) will require the hostkey to be stored in its memory, or is the fingerprint alone sufficient enough ?

 

Thank you in advance.

Raphael

Tags (1)
  • Tags:
  • english
Share
Reply
GavanOB
Lieutenant GavanOB Lieutenant
Lieutenant
‎2020-07-17 02:55 AM
1 Like
0
917
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-07-17 02:55 AM

Re: NetBotz 250 : SSH Hostkey and Public/Private keys

I'm not an expert on SSH but it's not like HTTPS.

 

Think of it like a checking the CRC for a file that's been downloaded from the internet. The SSH server assumes that you already know its thumbprint and on connection it expects you or your SSH client to confirm that the provided key matches what you think it should be.

 

The thumbprint is generated by hashing the host key in some way. (I don't know the exact details).

 

-Gavan 

APC by Schneider Electric
Tags (1)
  • Tags:
  • english
Share
Reply
Shaun
Ensign Shaun Ensign
Ensign
‎2020-07-17 04:18 AM
1 Like
1
906
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-07-17 04:18 AM

Re: NetBotz 250 : SSH Hostkey and Public/Private keys

Hi Raphaël,


The HostKey is the server's (in this case, your 250's) key pair.  When the connection is first established, the server sends its public key to the client.  The client creates a "shared secret", and uses the server's public key to encrypt it, and then returns this to the server.  Now both client & server know this shared secret - the client because it created it, the server because it could use its private key to decrypt it - but for a third-party attacker, neither is true, so it doesn't have the shared secret.

 

The shared secret is then used as the password for a much more efficient cipher (eg AES).

 

For this to work, the client needs to be able to trust that the key it received from the server, really came from the server.  For SSL/TLS, this is done by signing the key using another key the client already knows and trusts (a CA).  This is actually possible in some ssh implementations too, but more typically we just compare the key against a copy we already have.

 

The first time you connect, your client doesn't already have a copy - so you'll be presented with the key's "fingerprint".  This is just a cryptographic hash of the public key, to make this comparison easier for a human to make.  In the web interface of the 250 (Configurating->Network->Console->SSH Host Key), this is shown as an MD5 hash.  Many clients now prefer sha256 by default, but you can usually ask them to show MD5 also in order to make this comparison (eg, for openssh this would be ssh -o FingerprintHash=md5 user@host..).

 

Once you accept that you trust this key, the public key is saved to speed this up in future connections (eg, in openssh this is the known_hosts file; the long string on each line is a public key encoded with base64).  Most implementations store the whole key rather than the fingerprint - it prevents collision attacks, and saves having to hash it every time - at the low cost of using a few more bytes on disk.

 

To bring this back to the 250; if the client connects and receives a key it doesn't trust, and especially so when the key has changed, a well-behaved ssh client will stop and inform you something unusual has happened.  This is the correct behaviour, but can be a real nuisance if you've had to replace or reset the card for perfectly innocent reasons - especially if ssh is being used for automations where this stop isn't immediately visible.  So we provide a mechanism to replace this key - so you can install your own, and if you ever need to reset or replace the card, you can install the same key again to quickly and easily re-establish this trust relationship for all clients.

 

This is all a standard (and mandatory) part of any ssh implementation - but because it's so rarely interacted with, it's easily forgotten.  Most people are used to dealing with their own user ssh keys, and assume that's the keys they're looking at - as Gavan said, at this time we don't support the user-key mechanism.

Tags (1)
  • Tags:
  • english
Share
Reply
rf2019
Lieutenant JG rf2019
Lieutenant JG
‎2020-07-21 04:27 AM
0 Likes
0
879
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2020-07-21 04:27 AM

Re: NetBotz 250 : SSH Hostkey and Public/Private keys

Thank you Shaun for your detailed and precise information.

 

Just another last question.

For what I understood, NetBotz uses the hostkey (mix of public and private key).

However, is it possible to define a public and a private key, generated and defined by a bespoke security key generator, and input them on the NetBotz, so the SSH server on the NetBotz uses such keys ?

Tags (1)
  • Tags:
  • english
Share
Reply
Top Experts
User Count
APC_Steve
Lt. Commander APC_Steve Lt. Commander
2
GavanOB
Lieutenant GavanOB Lieutenant
1
lasalle_1
Crewman lasalle_1
1
Jef
Commander Jef Commander
1
tjlaw
Lieutenant JG tjlaw Lieutenant JG
1
See More Top Experts
Find a Service Provider
Find a certified partner to help you address your integration, installation, maintenance and project needs.
View all Providers
Support

Have a question? Please contact us with details, and we will respond.

Contact Us
FAQ

Look through existing questions to find popular answers.

Learn More
About

Want to know more about Exchange and its possibilities?

Learn More

Full access is just steps away!

Join Exchange for FREE and get unlimited access to our global community of experts.

Connect with Peers & Experts

Discuss challenges in energy and automation with 30,000+ experts and peers.

Get Support in Our Knowledge Base

Find answers in 10,000+ support articles to help solve your product and business challenges.

Ask Questions. Give Solutions

Find peer based solutions to your questions. Provide answers for fellow community members!

Register today for FREE

Register Now

Already have an account?Log in

About Us FAQ Terms & Conditions Privacy Notice Change your cookie settings
©2020, Schneider Electric