Thursday, November 27, 2014

problem installing passenger

EXCEPTION: parent directory is world writable


*** EXCEPTION: parent directory is world writable, FileUtils#remove_entry_secure does not work; abort: "/tmp/passenger.1xu4rh9" (parent directory mode 40777) (ArgumentError)
    /home/pubuntu/.rvm/rubies/
ruby-1.9.3-p448/lib/ruby/1.9.1/fileutils.rb:708:in `remove_entry_secure'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/lib/phusion_passenger/utils/tmpio.rb:61:in `ensure in mktmpdir'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/lib/phusion_passenger/utils/tmpio.rb:61:in `mktmpdir'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/lib/phusion_passenger/platform_info.rb:158:in `create_temp_file'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/lib/phusion_passenger/platform_info/compiler.rb:236:in `try_compile'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/lib/phusion_passenger/platform_info/apache.rb:550:in `apr_config_needed_for_building_apache_modules?'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/lib/phusion_passenger/platform_info.rb:96:in `apr_config_needed_for_building_apache_modules?'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/bin/passenger-install-apache2-module:77:in `dependencies'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/lib/phusion_passenger/abstract_installer.rb:134:in `check_dependencies'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/bin/passenger-install-apache2-module:104:in `run_steps'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/lib/phusion_passenger/abstract_installer.rb:69:in `run'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/bin/passenger-install-apache2-module:298:in `<top (required)>'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/bin/passenger-install-apache2-module:23:in `load'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/bin/passenger-install-apache2-module:23:in `<main>'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/bin/ruby_executable_hooks:15:in `eval'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/bin/ruby_executable_hooks:15:in `<main>'
solution is:
The parent directory in question is /tmp. The error is a security
precaution, warning you that you have your permissions wrong. Your
/tmp directory should have the sticky bit turned on.  


Monday, November 17, 2014

SSH using public key authentication to IOS

SSH using public key authentication to IOS



Create a user:
username test priv 15 secret supers3cr3tn0bdyw1llgue55

You need to make sure this public key is trusted by our router.
ip ssh pubkey-chain
     username test
          key-string
               copy the entire public key as appears in the cat id_rsa.pub including the ssh-rsa and [email protected]
               please note that some IOS versions will accept maximum 254 characters.
               you can paste multiple lines.     
          exit
     exit

Please also make sure that you generate RSA keys on Server larger than 768 bits.
You can also set SSHv2 on server side (although strictly speaking it's not required if you're using SSH 1.99)
 
ip ssh version 2
 
found at https://supportforums.cisco.com/document/110946/ssh-using-public-key-authentication-ios-and-big-outputs 

Cybermap

Internet Storm Center Infocon Status

Internet Storm Center Infocon Status
Internet Storm Center Infocon Status