# File lib/rhc/wizard.rb, line 471 def test_private_key_mode pub_key_file = RHC::Config.ssh_pub_key_file_path private_key_file = RHC::Config.ssh_priv_key_file_path if File.exist?(private_key_file) unless File.stat(private_key_file).mode.to_s(8) =~ /[4-7]00$/ raise "Your private SSH key file should be set as readable only to yourself. Please run 'chmod 600 #{system_path(private_key_file)}'" end end true end