Software you should know about

Over the past years I have worked with a lot of different software applications and libraries.
This currently little and hopefully never ending article should overview some of these.

It also should remind me about software I have used in different situations, or software that i would like to  keep in mind for further work.

 

 

Capistrano: Console to deployment dir with password authentication

The following task enables to connect to an app server and change to the deployment directory. It’s based on the deploy configuration with password authentication.

Requirements:

  1. ssh: obvious ;)
  2. sshpass: enables to pass a password to ssh

The task:

desc 'Open ssh `cap [staging] ssh [server_index default: 0]`'
task :ssh do
    on roles(:app) do |server|
        server_index = ARGV[2].to_i
        return if server != roles(:app)[server_index]
        puts "Opening a console on: #{host}...."
        ENV["SSHPASS"]= fetch(:ssh_options)[:password]
        cmd = "sshpass -e ssh  -t #{server.user}@#{host} 'cd #{fetch(:deploy_to)} ; exec bash  --login'
"        puts cmd
        exec cmd
    end
end

options:

  • sshpass
    • -e      sshpass should read the password from the $SSHPASS environment variable.
      This is a more secure version to the -p option. -p lets you set the password from the command line
      (e.g.) -p  ‘password’, which might be visible.
  • ssh
    • - t      Force pseudo-tty allocation.  (optional). Without this flag there is no support, for tab-completition
      and command promt (PS1)
  • bash
    • –login      Make bash act as if it had been invoked as a login shell: Reads the content of  /etc/profile~/.bash_profile, ~/.bash_login, ~/.profile and  ~/.bash_logout. 

Setup with public key authentication

For a public key configuration, the task looks like this:

desc 'Open ssh `cap [staging] ssh [server_index default: 0]`'
task :ssh do
    on roles(:app) do |server|
        server_index = ARGV[2].to_i
        return if server != roles(:app)[server_index]
        puts "Opening a console on: #{host}...."
        cmd = "ssh  -t #{server.user}@#{host} 'cd #{fetch(:deploy_to)} ; exec bash  --login'
"        puts cmd
        exec cmd
    end
end

Protected: Slow Word?

This content is password protected. To view it please enter your password below:

Protected: Architektur von Datenbanksystemen

This content is password protected. To view it please enter your password below:

Protected: Big Data Technologies

This content is password protected. To view it please enter your password below:

Protected: Data Warehouse

This content is password protected. To view it please enter your password below:

Protected: Neue Netz- und Anwendungskonzepte

This content is password protected. To view it please enter your password below:

Protected: Security of Web Servers and Web Applications

This content is password protected. To view it please enter your password below:

Protected:

This content is password protected. To view it please enter your password below:

Sehr geehrter Besucher,

 

vielen Dank für Ihren Besuch.
Diese Seite befindet sich im Aufbau.

 

Ich bin bestrebt, Ihnen dieses Internetangebot so schnell wie

möglich zur Verfügung stellen zu können.

Vielen Dank für Ihr Verständnis.