Skip to main content

Using Git with SSH keys from Windows

I

f you want to use ssh keys from your windows machine to push/pull your git repo to a remote server ( mostly Ubuntu server), follow these steps.

This technique involves generating ssh (public, private) keys and then using public key on the remote server (of course) and private key for your local computer in the config of git.

  • Generating ssh keys

  • SSH to Server using ssh keys

  • Adding ssh keys to the config file of Git

  • Test if Git works with ssh keys


VMware workstation player - resize Ubuntu partition size

I was running a small server on my Ubuntu HPE server where I have installed couple of small vir...

Backup & Restore Redmine

A nightmare comes true. I google around for a couple of hours to move my running Redmine instal...

I

f you want to use ssh keys from your windows machine to push/pull your git repo to a remote server ( mostly Ubuntu server), follow these steps.

This technique involves generating ssh (public, private) keys and then using public key on the remote server (of course) and private key for your local computer in the config of git.

Generating ssh keys

SSH to Server using ssh keys

Adding ssh keys to the config file of Git

Test if Git works with ssh keys

I

n this article we provide links to some repositories which uses xDebug in Dockerized containers.

Dockerized xDebug

Simple PHP App:

ssh://git@ubuntu22:10022/php/php_xdebug

PHP 8.0

Symfony PHP App:

ssh://git@ubuntu22:10022/php/php_setup

PHP 8.2

Symfony PHP Swish App:

ssh://git@ubuntu22:10022/php/swishtwig

PHP 8.2, SQLite

W

e daily solve our problems by going & consulting an expert of that domain area. For example we go to a doctor if we get sick. The doctor solve our problem (illness) by doing a series of tasks. The first task is to understand the illness and to do so the doctor takes several laboratory tests and other methods to understand your disease correctly; this process is usually called diagnosis. Once the illness is diagnosed/understood from the reports of laboratory tests, the doctor is then able to give you the precise medicines, and this process is called treatment.

Like wise we solve software problems also. According to some studies the process of any research is actually derived from medical research.  In the world of simplicity medical diagnosis uses different techniques & tools to understand the problem. Therefore taking this analogy into consideration there should be a concrete technique in software development to understand the problem correctly.

To the best of our knowledge these techniques & tools have not been described in any software engineering literature. Although there exists different methodologies (SCRUM. SAFE, Spotify etc) which focus on how to manage the different work units and may be add some reporting on top of  it to track the performance.

We don't understand the software problem in terms of any thing, we just write specifications or user stories; but is there any formal practice in any methodology in vogue that could be used to diagnose the problem. After taking the user requirements it is divided into bunches of work where every body try to solve it without really understanding it. In other words we simply convert business logic or requirements into software code. 

There is not really any tools where we can measure and identify the software problems and then provide some remedy. Let suppose a senior doctor asks a junior doctor about the reports of the patient, the junior doctor will perhaps tel about a severe temperature. But how does the senior doctor believe him, as he may do a mistake; well from the reports ( readings ). Here we simply focus on concrete measurements that could really define a problem. At one place the problem is defined by patient e.g he says severe headache or other pain but these are only symptoms which should be put in scientific tools to determine it correctly.

Let comes to the point of software development, the problem is usually defined by your client but defining & understanding it ( technically ) are different things. When we write use stories or requirements specifications, after that the real process of understanding and analyzing starts. Here we need those tools & techniques that are used in Doctors analogy. 

In this article we will provide some concrete tools which copewith these problems in the software world.

 

G

it is an important part of any software development. In this section we are presenting some commands that are used commonly.

The following is a list of commands you often need.

Tags

Git remove a committed file

git reset HEAD app/models/localbackup/backup.sql

Or the following should do if it is a directory, you need to commit this removal so that the remote repository know and delete the older committed files.

git rm --cached cms_docker/web/modules/custom/ -r
git status
git add .
git commit -m 'Remove custom modules from git'

 

Backend

My Repositories

In this article we provide links to some repositories which uses xDebug in Dockerized container...

Using submodules in Git

In Drupal and all other frameworks it is likely to use sub modules. I spent several hours to us...

Render API

This article describes and implements ( as examples ) the Render API....

PHP Tips & Tricks

PHP is one of the most popular web programming language. Its widely used due to its simplicity,...

Troubleshooting

Trouble shooting is an essential part of any software system. As a Drupal developer it is impor...

Creating Random Image Module

I use some online websites to show a random image in my code/websites, but it is very slow and ...

Drupal file system

Many times you need to interact with files in your modules or coding. ...

Frontend

Using twitter bootstrap 5 icons

There are two (or more) ways of using icons from the famous CSS framework Twitter Bootstrap 5....

CSS Triangles

CSS is an art and it needs some practice to master it....

Developing CKEditor Plugins

CKEditor is essential component of any CMS site, and Drupal is equally using it. Drupal provide...

Drupal Views Field Filter

There are two kind of filters in Drupal, Text format filters and Views field filter. In this ar...

Create views programatically

Create views programatically...

Drupal create Field Type

To be able to customize Drupal a nice addition would be to define your own Field Type e.g a You...

Drupal dependent select box

...