Steve's Power Systems BlogPower BlogContactLog inRegister
  • Power Blog
  • Contact

  • Register

IBM Power Systems Blog

Power Systems
  • Front Page
  • Categories
  • Archives
  • Latest comments
  • « AIX Random Password Generation
  • VIO Server 3.1.0 Items to Review »

VIO Server 3.1.0 and ssh host keys

Posted by steve on 05 Dec 2018 in VIO Server Tips

After installing VIO Server v3.1.0 I noticed that the ssh host keys are included in the mksysb image, and therefore unless you delete them and recreate them, all your VIO Servers will have the same host keys.  So unless you change them, I also have the same host keys that you have.

This may or may not be a security concern to you, but I would prefer each of my VIO Servers to have unique host keys.  I believe it is best practice for security sake to have every server have a unique SSH host key.

 

# /usr/ios/cli/ioscli ioslevel
3.1.0.00

 

SSH Host Keys

By default, the install just uses the SSH host keys already in the mksysb image.

# cd etc/ssh

# ls -l ssh_host*

-rw------- 1 root system  668 19 Oct 06:49 ssh_host_dsa_key
-rw-r--r-- 1 root system  590 19 Oct 06:49 ssh_host_dsa_key.pub
-rw------- 1 root system  227 19 Oct 06:49 ssh_host_ecdsa_key
-rw-r--r-- 1 root system  162 19 Oct 06:49 ssh_host_ecdsa_key.pub
-rw------- 1 root system  387 19 Oct 06:49 ssh_host_ed25519_key
-rw-r--r-- 1 root system   82 19 Oct 06:49 ssh_host_ed25519_key.pub
-rw------- 1 root system 1679 19 Oct 06:49 ssh_host_rsa_key
-rw-r--r-- 1 root system  382 19 Oct 06:49 ssh_host_rsa_key.pub

 

Let's take a look at one of those keys.

Does the public key look exactly the same as the one on your VIO Server?

# cat ssh_host_rsa_key.pub

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDEpdzANZeF9ul8KOENb6FO/Iu4CznbO49jaBhS8vFRtwwT/
0Y+VoSCIPc/BVPGUYzdu1e27Y4kTt1cFhQgxOsXaARgQMplYJ5F8UciiJSTujVQzQbJhYMk6VISmdEQ/HINIG
SeI+hyIQZ9fnAlo0HrjVzIK0EPVKVV5Wsu63CtA3PhE4ONr10BZBkUzwV0+7KFOecQ0KjDchHJeM1GeqVrqWO
hqKTy36Zg8bXsCgwfPPKh6JZGuimPrQ9CTvhBGXyNEw2USO1Z4lXtbc+z7aFdGtmamkvWE2cFD190uaQoqK9o
Yj7VuhCD/5J0WnkOdjpyQ73LBhTxsugRFb2wcejP

 

To Fix This.

# rm /etc/ssh/ssh_host*

# ssh-keygen -P '' -t rsa -f /etc/ssh/ssh_host_rsa_key

 

 

Tags: 3.1.0.00VIO ServerVIOSVIOS 3.1.0.00sshssh_host_rsa_key

1 comment

Comment from: Fant Steele Visitor

Fant Steele

If you want to do all 4 sets:

/usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''

/usr/bin/ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''

/usr/bin/ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ''

/usr/bin/ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ''

05/02/21 @ 08:21 pm


Form is loading...

August 2026
Mon Tue Wed Thu Fri Sat Sun
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
 << <   > >>

IBM Power Systems Blog

IBM Power Systems - Administration, Tuning and Optimisation. These posts are my own personal opinions and comments only.

Search

Categories

  • All
  • AIX Tips
  • AIX Tuning
  • Command Line Tips
  • HMC Tips
  • LPM Information
  • NIM Tips
  • Performance Testing
  • Power System Affinity
  • PowerHA Tips
  • SRIOV and vNIC
  • Scripts and One Liners
  • VIO Server Tips

Recent Posts

  • AIX NIM Hints and Tips
  • Finding Multiple Install Sources for AIX
  • PowerHA and EMC Busy Devices
  • AIX Random Password Generation
  • VIO Server 3.1.0 and ssh host keys
  • VIO Server 3.1.0 Items to Review
  • Just when you thought you understood idle CPU time!!
  • 40Gbit Adapter Performance Testing
  • LPM Copy Time Statistics
  • IBM HMC Upgrades

Recent Comments

  • steve on How to configure IBM SRIOV Adapters
  • Howard Coles on How to configure IBM SRIOV Adapters
  • steve on AIX mpstat and lssrad part 1
  • Charin Kumjudpai on AIX mpstat and lssrad part 1
  • Gagandeep on LPM and multiple vSwitches
  • Fant Steele on VIO Server 3.1.0 and ssh host keys
  • steve on AIX NIM Hints and Tips
  • alan wilcox on AIX NIM Hints and Tips
  • steve on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Bernhar on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Gery on Reading VLANs from the SEA Adapter
  • steve on Reading VLANs from the SEA Adapter
  • patrice on Reading VLANs from the SEA Adapter
  • steve on Reading VLANs from the SEA Adapter
  • steve on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Chris K. on AIX buf_mode attribute for Virtual Ethernet Adapters
  • jovi on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • steve on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • jovi on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • steve on Creating EtherChannel Devices from Command Line

This collection ©2026 by Stephen Diwell • Contact • Help • Responsive CMS • hosting reviews

Photo gallery software
Cookies are required to enable core site functionality.