Tag Archives: PowerShell

PowerShell – Add private key for Key Authentication SSH

We can use PowerShell as a SSH client. If your SSH server requires key authentication, you can use the following command to add your private key before you could establish the SSH connection.

  • ssh-add [key path]

Continue reading PowerShell – Add private key for Key Authentication SSH

Advertisement

PowerShell – Get command path like the “which” command in Linux

I have installed Sublime Text 3 with the Git package but it keeps prompting Git command not found in the PATH variable. Before i update the PATH, i have to figure out where is my Git command.

In Linux, we can get the path of a specific command by which [comamnd].
ex. ~$ which git
powershell-which-1
Continue reading PowerShell – Get command path like the “which” command in Linux

Setup Yeoman in Windows PowerShell

Update @ 2015-09-23: Using PowerShell is just my personal preference, You could use MS-DOS in Windows if your machine doesn’t have PowerShell installed.

1. Download Node.js and install it and make sure you have the npm package manager selected before the installation.
setup-yeoman-in-powershell-1
 
Continue reading Setup Yeoman in Windows PowerShell

Drupal – Run Drush in Windows PowerShell

1. Install the Drush Windows Installer.
 

2. Open the DrushEnv.bat in a text editor. The default location should be C:\Program Files (x86)\Drush. You should see the ENV variable setting as follow.

@ECHO Command Prompt shell optimized for Drush 
@SET PATH=%PATH%;C:\ProgramData\Drush\
@SET PATH=%PATH%;C:\Program Files (x86)\Drush\GnuWin32\bin
@SET PATH=%PATH%;C:\Program Files (x86)\Drush\Php

Continue reading Drupal – Run Drush in Windows PowerShell