public function getConnectionCredentials($connectionName)
    {
        $user = $this->bash->runLocally('whoami');

        $usesPrivateKey = $this->command->confirm('Do you use an SSH key to connect to it?');
        $questions = $usesPrivateKey ? [
            'key' => ['Where can I find your key?', $this->paths->getDefaultKeyPath()],
            'keyphrase' => 'If it needs a passphrase enter it',
            'host' => 'Where is your server located? <comment>(eg. foobar.com)</comment>',
            'username' => ['What is the username for it?', $user],
            'root_directory' => ['Where do you want your application deployed?', '/home/www/'],
        ] : [
            'host' => 'Where is your server located?',
            'username' => ['What is the username for it?', $user],
            'password' => 'And password?',
            'root_directory' => ['Where do you want your application deployed?', '/home/www/'],
        ];

        $this->connections[$connectionName] = $this->askQuestions($connectionName, $questions);
    }